Skip to content
This repository
Browse code

Expose jquery.mobile as an AMD module if running in an AMD env

  • Loading branch information...
commit 05068af4148554798cc2f34d6d71dec0e6331fb0 1 parent 1bbd67b
Ghislain Seguin authored December 22, 2011
2  Makefile
@@ -102,7 +102,7 @@ init:
102 102
 js: init
103 103
 	# Build the JavaScript file
104 104
 	@@node external/r.js -o baseUrl="js" \
105  
-			include=jquery.mobile exclude=jquery,order \
  105
+			include=jquery.mobile,jquery.mobile.exports exclude=jquery,order \
106 106
 			out=${OUTPUT}/${NAME}.tmp.js \
107 107
 			pragmasOnSave.jqmBuildExclude=true \
108 108
 			skipModuleInsertion=true \
7  js/jquery.mobile.exports.js
... ...
@@ -0,0 +1,7 @@
  1
+(function( $ ) {
  2
+
  3
+if ( typeof define === "function" && define.amd ) {
  4
+	define( "jquery.mobile", [], function () { return $.mobile; } );
  5
+}
  6
+
  7
+}( jQuery ));

0 notes on commit 05068af

Please sign in to comment.
Something went wrong with that request. Please try again.