mirror of
https://github.com/jquery/jquery.git
synced 2026-02-09 11:25:04 -05:00
#7883 .delegate and .live should accept false as the fn arg, like bind
This commit is contained in:
@@ -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(" ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user