mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 06:20:26 +00:00
Merge branch 'master' of https://github.com/jquery/jquery-mobile into issue-1654
This commit is contained in:
commit
be94de1c18
2 changed files with 31 additions and 25 deletions
26
Makefile
26
Makefile
|
|
@ -87,21 +87,31 @@ all: init js min css cssmin notify
|
|||
|
||||
# Build the normal CSS file.
|
||||
css: init
|
||||
# Build the CSS file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${CSS}
|
||||
@@cat ${CSSFILES} >> ${OUTPUT}/${CSS}
|
||||
|
||||
# Build the minified CSS file
|
||||
cssmin: init css
|
||||
# Build the minified CSS file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${CSSMIN}
|
||||
@@java -jar build/yuicompressor-2.4.4.jar --type css ${OUTPUT}/${CSS} >> ${OUTPUT}/${CSSMIN}
|
||||
|
||||
# Build the normal JS file
|
||||
js: init
|
||||
# Build the JavaScript file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${JS}
|
||||
@@cat ${JSFILES} >> ${OUTPUT}/${JS}
|
||||
|
||||
# Create the output directory. This is in a separate step so its not dependant on other targets
|
||||
init:
|
||||
# Building jQuery Mobile in the "${OUTPUT}" folder
|
||||
@@rm -rf ${OUTPUT}
|
||||
@@mkdir ${OUTPUT}
|
||||
|
||||
# Build the minified JS file
|
||||
min: init js
|
||||
# Build the minified Javascript file
|
||||
@@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${OUTPUT}/${MIN}
|
||||
@@java -jar build/google-compiler-20110405.jar --js ${OUTPUT}/${JS} --warning_level QUIET --js_output_file ${MIN}.tmp
|
||||
@@cat ${MIN}.tmp >> ${OUTPUT}/${MIN}
|
||||
|
|
@ -111,18 +121,12 @@ min: init js
|
|||
notify:
|
||||
@@echo "The files have been built and are in " $$(pwd)/${OUTPUT}
|
||||
|
||||
# Create the output directory. This is in a separate step so its not dependant on other targets
|
||||
init:
|
||||
@@rm -rf ${OUTPUT}
|
||||
@@mkdir ${OUTPUT}
|
||||
|
||||
# Pull the latest commits. This is used for the nightly build but can be used to save some keystrokes
|
||||
pull:
|
||||
@@git pull --quiet
|
||||
|
||||
# Zip the 4 files and the theme images into one convenient package
|
||||
zip: init js min css cssmin
|
||||
@@rm -rf ${DIR}
|
||||
@@mkdir -p ${DIR}
|
||||
@@cp ${OUTPUT}/${DIR}*.js ${DIR}/
|
||||
@@cp ${OUTPUT}/${DIR}*.css ${DIR}/
|
||||
|
|
@ -174,12 +178,11 @@ nightly: pull zip
|
|||
# Used by the jQuery team to deploy a build to the CDN
|
||||
deploy: zip
|
||||
# Deploy to CDN
|
||||
@@mv ${DIR} ${VER}
|
||||
@@cp ${DIR}.zip ${VER}/
|
||||
@@mv ${OUTPUT} ${VER}
|
||||
@@scp -r ${VER} jqadmin@code.origin.jquery.com:/var/www/html/code.jquery.com/mobile/
|
||||
@@mv ${VER} ${DIR}
|
||||
@@mv ${VER} ${OUTPUT}
|
||||
|
||||
# Deploy Demos
|
||||
# Deploy Demos to the jQueryMobile.com site
|
||||
@@mkdir -p ${VER}
|
||||
@@cp -r index.html themes experiments docs ${VER}/
|
||||
|
||||
|
|
@ -198,3 +201,6 @@ deploy: zip
|
|||
|
||||
@@scp -r ${VER} jqadmin@jquerymobile.com:/srv/jquerymobile.com/htdocs/demos/
|
||||
|
||||
# Clean up the local files
|
||||
@@rm -rf ${VER}
|
||||
@@echo "All Done"
|
||||
|
|
|
|||
|
|
@ -115,25 +115,25 @@
|
|||
|
||||
//mobile version of data and removeData and hasData methods
|
||||
//ensures all data is set and retrieved using jQuery Mobile's data namespace
|
||||
$.fn.jqmData = function( prop, value ){
|
||||
return this.data( prop ? $.mobile.ns + prop : prop, value );
|
||||
};
|
||||
$.fn.jqmData = function( prop, value ){
|
||||
return this.data( prop ? $.mobile.ns + prop : prop, value );
|
||||
};
|
||||
|
||||
$.jqmData = function( elem, prop, value ){
|
||||
return $.data( elem, prop && $.mobile.ns + prop, value );
|
||||
};
|
||||
$.jqmData = function( elem, prop, value ){
|
||||
return $.data( elem, prop && $.mobile.ns + prop, value );
|
||||
};
|
||||
|
||||
$.fn.jqmRemoveData = function( prop ){
|
||||
return this.removeData( $.mobile.ns + prop );
|
||||
};
|
||||
$.fn.jqmRemoveData = function( prop ){
|
||||
return this.removeData( $.mobile.ns + prop );
|
||||
};
|
||||
|
||||
$.jqmRemoveData = function( elem, prop ){
|
||||
return $.removeData( elem, prop && $.mobile.ns + prop );
|
||||
};
|
||||
$.jqmRemoveData = function( elem, prop ){
|
||||
return $.removeData( elem, prop && $.mobile.ns + prop );
|
||||
};
|
||||
|
||||
$.jqmHasData = function( elem, prop ){
|
||||
return $.hasData( elem, prop && $.mobile.ns + prop );
|
||||
};
|
||||
$.jqmHasData = function( elem, prop ){
|
||||
return $.hasData( elem, prop && $.mobile.ns + prop );
|
||||
};
|
||||
|
||||
|
||||
// Monkey-patching Sizzle to filter the :jqmData selector
|
||||
|
|
|
|||
Loading…
Reference in a new issue