When .bind('unload') was called it accidentally went recursive, from 1bac61655b
. Fixes #5688.
This commit is contained in:
parent
a00e63ea5a
commit
ea5d514008
|
@ -778,9 +778,11 @@ jQuery.each(["bind", "one"], function( i, name ) {
|
||||||
jQuery( this ).unbind( event, handler );
|
jQuery( this ).unbind( event, handler );
|
||||||
return fn.apply( this, arguments );
|
return fn.apply( this, arguments );
|
||||||
}) : fn;
|
}) : fn;
|
||||||
return type === "unload" ? this.one(type, data, handler, thisObject) : this.each(function() {
|
return type === "unload" && name !== "one" ?
|
||||||
jQuery.event.add( this, type, handler, data );
|
this.one( type, data, fn, thisObject ) :
|
||||||
});
|
this.each(function() {
|
||||||
|
jQuery.event.add( this, type, handler, data );
|
||||||
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue