Removed bind/unbind from xhr emulation: success/error/complete are deferred not event...
authorjaubourg <aubourg.julian@gmail.com>
Sat, 11 Dec 2010 01:04:13 +0000 (02:04 +0100)
committerjaubourg <aubourg.julian@gmail.com>
Sat, 11 Dec 2010 01:04:13 +0000 (02:04 +0100)
src/xhr.js

index c458704..57903e0 100644 (file)
@@ -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() {