Matching the jQuery code style guidelines.

This commit is contained in:
Louy Alakkad 2010-12-22 07:52:08 -08:00
parent ba99290480
commit 59e8ee3137

View file

@ -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,