diff --git a/js/jquery.mobile.forms.checkboxradio.js b/js/jquery.mobile.forms.checkboxradio.js index 8809b33e..b430c273 100644 --- a/js/jquery.mobile.forms.checkboxradio.js +++ b/js/jquery.mobile.forms.checkboxradio.js @@ -18,10 +18,11 @@ $.widget( "mobile.checkboxradio", $.mobile.widget, { if ( inputtype != "checkbox" && inputtype != "radio" ) { return; } - // Check for theme... - if( !this.options.theme ) - this.options.theme = this.element.data('theme'); - + // If there's no selected theme... + if( !this.options.theme ) { + this.options.theme = this.element.data( "theme" ); + } + label .buttonMarkup({ theme: this.options.theme,