Skip to content
Permalink
Browse files

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

…otype. Fixes #7817. Test case for this commit is shared with the fix for #6355, #140 .
  • Loading branch information...
dmethvin committed Dec 21, 2010
1 parent 4424bda commit acab4ab0e50fadacb106468b1449643b9a03826b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/xhr.js
@@ -87,7 +87,7 @@ jQuery.xhr = function( _native ) {
}

// Apply option prefilters
for (i in prefilters) {
for ( i = 0; i < prefilters.length; i++ ) {
prefilters[i](s);
}

0 comments on commit acab4ab

Please sign in to comment.
You can’t perform that action at this time.