Commit 9d3a4a2b authored by jaubourg's avatar jaubourg

Removed bind/unbind from xhr emulation: success/error/complete are deferred...

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.
parent 8ab5e1e4
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment