Clearing event handlers on unload is no longer necessary in any version of IE. This...
[jquery.git] / src / xhr.js
index c458704..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);
                }
                
@@ -597,23 +597,6 @@ jQuery.xhr = function( _native ) {
        reset(1);
 
        // Install callbacks related methods
-       jQuery.each(["bind","unbind"], function(_, name) {
-               xhr[name] = function(type) {
-                       
-                       var functors = sliceFunc.call(arguments,1),
-                               list;
-                               
-                       jQuery.each(type.split(/\s+/g), function() {
-                               list = callbacksLists[this];
-                               if ( list ) {
-                                       list[name].apply(list, functors );
-                               }
-                       });
-                       
-                       return this;
-               };
-       });
-
        jQuery.each(callbacksLists, function(name) {
                var list;
                xhr[name] = function() {