mirror of
https://github.com/jquery/jquery.git
synced 2026-02-08 11:04:59 -05:00
Bug 4366; fixing $.each(document.styleSheets) from throwing errors in IE
This commit is contained in:
@@ -610,8 +610,11 @@ jQuery.extend({
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for ( var value = object[0];
|
||||
i < length && callback.call( value, i, value ) !== false; value = object[++i] ) {}
|
||||
for ( ; i < length; ) {
|
||||
if ( callback.call( object[ i ], i, object[ i++ ] ) === false ) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user