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:
Mat Marquis 2011-10-26 16:54:11 -04:00
parent 6b85cdbd99
commit 410a169b2b

View file

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