mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-15 18:13:09 +00:00
Fixes an issue introduced in commit #b0db8976, where lack of indexOf() was keeping IE 6/7/8 (at least) from rendering anything at all.
This commit is contained in:
parent
6b85cdbd99
commit
410a169b2b
1 changed files with 1 additions and 1 deletions
|
|
@ -91,7 +91,7 @@ function closestEnabledButton( element ) {
|
|||
|
||||
while ( element ) {
|
||||
cname = element.className && element.className.split(' ');
|
||||
if ( cname && cname.indexOf( "ui-btn" ) > -1 && cname.indexOf( "ui-disabled" ) < 0 ) {
|
||||
if ( cname && $.inArray( "ui-btn", cname ) > -1 && $.inArray( "ui-disabled", cname ) < 0 ) {
|
||||
break;
|
||||
}
|
||||
element = element.parentNode;
|
||||
|
|
|
|||
Loading…
Reference in a new issue