]> source.dussan.org Git - jquery.git/commitdiff
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 c458704eeabaeb78caa1fe615fd7b7c740e10d5d..57903e046be7f9936d15e2041b0bb3dc81b1f15c 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() {