Commit acab4ab0 authored by Dave Methvin's avatar Dave Methvin

Use for loop instead of for/in loop to protect sanctity of Array.prototype....

Use for loop instead of for/in loop to protect sanctity of Array.prototype. Fixes #7817. Test case for this commit is shared with the fix for #6355, https://github.com/jquery/jquery/pull/140 .
parent 4424bda3
...@@ -87,7 +87,7 @@ jQuery.xhr = function( _native ) { ...@@ -87,7 +87,7 @@ jQuery.xhr = function( _native ) {
} }
// Apply option prefilters // Apply option prefilters
for (i in prefilters) { for ( i = 0; i < prefilters.length; i++ ) {
prefilters[i](s); prefilters[i](s);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment