@@ -76,7 +76,8 @@ if ( $.mobileBackcompat !== false ) {
7676 if ( value ) {
7777 classArray . push ( className ) ;
7878 } else {
79- classArray . splice ( $ . inArray ( this . _boolOptions [ option ] , classArray ) , 1 ) ;
79+ classArray . splice (
80+ $ . inArray ( this . _boolOptions [ option ] , classArray ) , 1 ) ;
8081 }
8182 this . option ( "classes." + prop , classArray . join ( " " ) ) ;
8283 }
@@ -90,28 +91,31 @@ if ( $.mobileBackcompat !== false ) {
9091
9192 if ( prop && typeof original . classes [ prop ] === "string" &&
9293 typeof this . options . classes [ prop ] === "string" ) {
93- currentClasses = this . options . classes [ prop ] . match ( classSplitterRegex ) || [ ] ;
94+ currentClasses = this . options . classes [ prop ] . match ( classSplitterRegex ) ||
95+ [ ] ;
9496
95- // If the classes option value has diverged from the default, then its value takes
96- // precedence, causing us to update all the style options to reflect the contents
97- // of the classes option value
97+ // If the classes option value has diverged from the default, then its value
98+ // takes precedence, causing us to update all the style options to reflect the
99+ // contents of the classes option value
98100 if ( original . classes [ prop ] !== this . options . classes [ prop ] ) {
99101 $ . each ( this . _boolOptions , function ( option , className ) {
100102 if ( options [ option ] !== undefined ) {
101- options [ option ] = ( $ . inArray ( className , currentClasses ) !== - 1 ) ;
103+ options [ option ] =
104+ ( $ . inArray ( className , currentClasses ) !== - 1 ) ;
102105 }
103106 } ) ;
104107
105108 // Otherwise we assume that we're dealing with legacy code and look for style
106- // option values which diverge from the defaults. If we find any that diverge, we
107- // update the classes option value accordingly.
109+ // option values which diverge from the defaults. If we find any that diverge,
110+ // we update the classes option value accordingly.
108111 } else {
109112 $ . each ( this . _boolOptions , function ( option , className ) {
110113 if ( options [ option ] !== original [ option ] ) {
111114 if ( options [ option ] ) {
112115 currentClasses . push ( className ) ;
113116 } else {
114- currentClasses . splice ( $ . inArray ( className , currentClasses ) , 1 ) ;
117+ currentClasses . splice (
118+ $ . inArray ( className , currentClasses ) , 1 ) ;
115119 }
116120 }
117121 } ) ;
0 commit comments