diff --git a/Makefile b/Makefile index 8765bbaf..88719401 100644 --- a/Makefile +++ b/Makefile @@ -102,7 +102,7 @@ init: js: init # Build the JavaScript file @@node external/r.js -o baseUrl="js" \ - include=jquery.mobile exclude=jquery,order \ + include=jquery.mobile,jquery.mobile.exports exclude=jquery,order \ out=${OUTPUT}/${NAME}.tmp.js \ pragmasOnSave.jqmBuildExclude=true \ skipModuleInsertion=true \ diff --git a/js/jquery.mobile.exports.js b/js/jquery.mobile.exports.js new file mode 100644 index 00000000..cfe943d2 --- /dev/null +++ b/js/jquery.mobile.exports.js @@ -0,0 +1,7 @@ +(function( $ ) { + +if ( typeof define === "function" && define.amd ) { + define( "jquery.mobile", [], function () { return $.mobile; } ); +} + +}( jQuery ));