diff --git a/js/jquery.mobile.buttonMarkup.js b/js/jquery.mobile.buttonMarkup.js index be891837..dc86de21 100644 --- a/js/jquery.mobile.buttonMarkup.js +++ b/js/jquery.mobile.buttonMarkup.js @@ -13,13 +13,13 @@ $.fn.buttonMarkup = function( options ) { var el = this.eq( i ), e = el[ 0 ], o = $.extend( {}, $.fn.buttonMarkup.defaults, { - icon: options.icon || el.jqmData( "icon" ), - iconpos: options.iconpos || el.jqmData( "iconpos" ), - theme: options.theme || el.jqmData( "theme" ), - inline: options.inline || el.jqmData( "inline" ), - shadow: options.shadow || el.jqmData( "shadow" ), - corners: options.corners || el.jqmData( "corners" ), - iconshadow: options.iconshadow || el.jqmData( "iconshadow" ) + icon: options.icon !== undefined ? options.icon : el.jqmData( "icon" ), + iconpos: options.iconpos !== undefined ? options.iconpos : el.jqmData( "iconpos" ), + theme: options.theme !== undefined ? options.theme : el.jqmData( "theme" ), + inline: options.inline !== undefined ? options.inline : el.jqmData( "inline" ), + shadow: options.shadow !== undefined ? options.shadow : el.jqmData( "shadow" ), + corners: options.corners !== undefined ? options.corners : el.jqmData( "corners" ), + iconshadow: options.iconshadow !== undefined ? options.iconshadow : el.jqmData( "iconshadow" ) }, options ), // Classes Defined diff --git a/js/jquery.mobile.listview.js b/js/jquery.mobile.listview.js index c6e82251..c2181ff5 100644 --- a/js/jquery.mobile.listview.js +++ b/js/jquery.mobile.listview.js @@ -39,8 +39,8 @@ $.widget( "mobile.listview", $.mobile.widget, { var $countli = item.find( ".ui-li-count" ); if ( $countli.length ) { item.addClass( "ui-li-has-count" ); + $countli.addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme ) + " ui-btn-corner-all" ); } - $countli.addClass( "ui-btn-up-" + ( $list.jqmData( "counttheme" ) || this.options.countTheme ) + " ui-btn-corner-all" ); // TODO class has to be defined in markup item.find( "h1, h2, h3, h4, h5, h6" ).addClass( "ui-li-heading" ).end()