mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-16 22:10:25 +00:00
Expose jquery.mobile as an AMD module if running in an AMD env
This commit is contained in:
parent
c31e7173d2
commit
02baaf67f7
2 changed files with 8 additions and 1 deletions
2
Makefile
2
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 \
|
||||
|
|
|
|||
7
js/jquery.mobile.exports.js
Normal file
7
js/jquery.mobile.exports.js
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(function( $ ) {
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
define( "jquery.mobile", [], function () { return $.mobile; } );
|
||||
}
|
||||
|
||||
}( jQuery ));
|
||||
Loading…
Reference in a new issue