Use for loop instead of for/in loop to protect sanctity of Array.prototype. Fixes...
[jquery.git] / src / xhr.js
index 57903e0..4896e6c 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);
                }