#7883 .delegate and .live should accept false as the fn arg, like bind
This commit is contained in:
parent
eed3803c98
commit
612a908514
2 changed files with 45 additions and 1 deletions
|
@ -1023,10 +1023,15 @@ jQuery.each(["live", "die"], function( i, name ) {
|
|||
return this;
|
||||
}
|
||||
|
||||
if ( jQuery.isFunction( data ) ) {
|
||||
if ( jQuery.isFunction( data ) || data === false ) {
|
||||
fn = data;
|
||||
data = undefined;
|
||||
}
|
||||
|
||||
if ( fn === false ) {
|
||||
fn = returnFalse;
|
||||
}
|
||||
|
||||
|
||||
types = (types || "").split(" ");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue