Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixes #3479

Added $.mobile.version
  • Loading branch information...
commit ae835d0af11e0e822933f127b82b19fbe84ee4de 1 parent b08ff1e
Ghislain Seguin gseguin authored
Showing with 7 additions and 4 deletions.
  1. +4 −3 Makefile
  2. +3 −1 js/jquery.mobile.core.js
7 Makefile
View
@@ -18,7 +18,7 @@ deploy: STRUCTURE = jquery.mobile.structure-${VER_OFFICIAL}
# The CSS theme being used
THEME = default
-RUN_JS = @@java -XX:ReservedCodeCacheSize=64m -classpath build/js.jar:build/google-compiler-20111003.jar org.mozilla.javascript.tools.shell.Main
+RUN_JS = @@/usr/local/bin/node
@@ -99,7 +99,8 @@ js: init
${RUN_JS} \
external/r.js/dist/r.js \
-o baseUrl="js" \
- include=jquery.mobile exclude=jquery,order \
+ include=jquery.mobile \
+ exclude=jquery,order,text,text!../version.txt \
out=${OUTPUT}/${NAME}.compiled.js \
pragmasOnSave.jqmBuildExclude=true \
wrap.startFile=build/wrap.start \
@@ -108,7 +109,7 @@ js: init
skipModuleInsertion=true \
optimize=none
@@cat LICENSE-INFO.txt | ${VER} > ${OUTPUT}/${NAME}.js
- @@cat ${OUTPUT}/${NAME}.compiled.js >> ${OUTPUT}/${NAME}.js
+ @@cat ${OUTPUT}/${NAME}.compiled.js | sed 's/__version__/"${VER_OFFICIAL}"/g' >> ${OUTPUT}/${NAME}.js
@@rm ${OUTPUT}/${NAME}.compiled.js
# ..... and then minify it
@@echo ${VER_MIN} > ${OUTPUT}/${NAME}.min.js
4 js/jquery.mobile.core.js
View
@@ -4,7 +4,7 @@
//>>group: core
//>>required: true
-define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
+define( [ "jquery", "text!../version.txt", "./jquery.mobile.widget" ], function( $, __version__ ) {
//>>excludeEnd("jqmBuildExclude");
(function( $, window, undefined ) {
@@ -13,6 +13,8 @@ define( [ "jquery", "./jquery.mobile.widget" ], function( $ ) {
// jQuery.mobile configurable options
$.mobile = $.extend( {}, {
+ version: __version__,
+
// Namespace used framework-wide for data-attrs. Default is no namespace
ns: "",
Please sign in to comment.
Something went wrong with that request. Please try again.