diff --git a/Makefile b/Makefile index 8a7e151ddf3..9210dc865cd 100755 --- a/Makefile +++ b/Makefile @@ -55,19 +55,19 @@ clean: @@rm -rf ${DIR}* css: - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSS} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSS} @@cat ${CSSFILES} >> ${CSS} cssmin: css - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${CSSMIN} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${CSSMIN} @@java -jar build/yuicompressor-2.4.2.jar --type css ${CSS} >> ${CSSMIN} mobile: - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${MAX} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MAX} @@cat ${FILES} >> ${MAX} min: mobile - @@head -8 js/jquery.mobile.js | ${SED_VER} > ${MIN} + @@head -8 js/jquery.mobile.core.js | ${SED_VER} > ${MIN} @@java -jar build/google-compiler-20100917.jar --js ${MAX} --warning_level QUIET --js_output_file ${MIN}.tmp @@cat ${MIN}.tmp >> ${MIN} @@rm -f ${MIN}.tmp diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index 3e5200b0368..bfe58167ef6 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -14,6 +14,7 @@ $.widget( "mobile.listview", $.mobile.widget, { dividerTheme: "b", splitIcon: "arrow-r", splitTheme: "b", + sublists: true, inset: false }, @@ -146,14 +147,17 @@ $.widget( "mobile.listview", $.mobile.widget, { }, refresh: function( create ) { - this._createSubPages(); - - var o = this.options, + var o = this.options, $list = this.element, self = this, - dividertheme = $list.data( "dividertheme" ) || o.dividerTheme, - li = $list.children( "li" ), - counter = $.support.cssPseudoElement || !$.nodeName( $list[0], "ol" ) ? 0 : 1; + dividertheme = $list.data("dividertheme") || o.dividerTheme, + li = $list.children("li"), + counter = $.support.cssPseudoElement || !$.nodeName($list[0], "ol") ? 0 : 1, + sublists = $list.data("sublists") || o.sublists; + + if ( sublists ) { + this._createSubPages(); + } if ( counter ) { $list.find( ".ui-li-dec" ).remove();