From: jaubourg Date: Sat, 11 Dec 2010 01:04:13 +0000 (+0100) Subject: Removed bind/unbind from xhr emulation: success/error/complete are deferred not event... X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=9d3a4a2b409f7a4c53800bb36b0de39c0c0084ae;p=jquery.git Removed bind/unbind from xhr emulation: success/error/complete are deferred not events so these methods didn't really make sense in the first place. --- diff --git a/src/xhr.js b/src/xhr.js index c458704..57903e0 100644 --- a/src/xhr.js +++ b/src/xhr.js @@ -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() {