From 59e8ee31377d1d80f5f2722e718f3ce8faff20ae Mon Sep 17 00:00:00 2001 From: Louy Alakkad Date: Wed, 22 Dec 2010 07:52:08 -0800 Subject: [PATCH] Matching the jQuery code style guidelines. --- js/jquery.mobile.forms.checkboxradio.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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,