Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Expose jquery.mobile as an AMD module if running in an AMD env
Browse files Browse the repository at this point in the history
  • Loading branch information
gseguin committed Dec 22, 2011
1 parent 1bbd67b commit 05068af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -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 \
Expand Down
7 changes: 7 additions & 0 deletions js/jquery.mobile.exports.js
@@ -0,0 +1,7 @@
(function( $ ) {

if ( typeof define === "function" && define.amd ) {
define( "jquery.mobile", [], function () { return $.mobile; } );
}

}( jQuery ));

0 comments on commit 05068af

Please sign in to comment.