Permalink
Browse files

Removed bind/unbind from xhr emulation: success/error/complete are de…

…ferred not events so these methods didn't really make sense in the first place.
  • Loading branch information...
jaubourg
jaubourg committed Dec 11, 2010
1 parent 8ab5e1e commit 9d3a4a2b409f7a4c53800bb36b0de39c0c0084ae
Showing with 0 additions and 17 deletions.
  1. +0 −17 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() {

0 comments on commit 9d3a4a2

Please sign in to comment.