]> source.dussan.org Git - jquery.git/commitdiff
Use for loop instead of for/in loop to protect sanctity of Array.prototype. Fixes... 142/head
authorDave Methvin <dave.methvin@gmail.com>
Tue, 21 Dec 2010 15:00:49 +0000 (10:00 -0500)
committerDave Methvin <dave.methvin@gmail.com>
Tue, 21 Dec 2010 15:00:49 +0000 (10:00 -0500)
src/xhr.js

index 57903e046be7f9936d15e2041b0bb3dc81b1f15c..4896e6cb6fb00c00c3d5c6f97aadfaa8c400aed7 100644 (file)
@@ -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);
                }