Skip to content

Commit 9f73156

Browse files
committed
else on the same lines
1 parent 3d40968 commit 9f73156

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

js/jquery.mobile.buttonMarkup.js

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -187,25 +187,20 @@ var attachEvents = function() {
187187
hov = setTimeout(function() {
188188
$btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
189189
}, hoverDelay );
190-
}
191-
else {
190+
} else {
192191
$btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-down-" + theme );
193192
}
194-
}
195-
else if ( event.type === "vmousecancel" || event.type === "vmouseup" ) {
193+
} else if ( event.type === "vmousecancel" || event.type === "vmouseup" ) {
196194
$btn.removeClass( "ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
197-
}
198-
else if ( event.type === "vmouseover" || event.type === "focus" ) {
195+
} else if ( event.type === "vmouseover" || event.type === "focus" ) {
199196
if ( $.support.touch ) {
200197
foc = setTimeout(function() {
201198
$btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
202199
}, hoverDelay );
203-
}
204-
else {
200+
} else {
205201
$btn.removeClass( "ui-btn-up-" + theme ).addClass( "ui-btn-hover-" + theme );
206202
}
207-
}
208-
else if ( event.type === "vmouseout" || event.type === "blur" || event.type === "scrollstart" ) {
203+
} else if ( event.type === "vmouseout" || event.type === "blur" || event.type === "scrollstart" ) {
209204
$btn.removeClass( "ui-btn-hover-" + theme + " ui-btn-down-" + theme ).addClass( "ui-btn-up-" + theme );
210205
hov && clearTimeout( hov );
211206
foc && clearTimeout( foc );

0 commit comments

Comments
 (0)