mirror of
https://github.com/jquery/jquery.git
synced 2026-01-25 20:37:55 -05:00
Shorten up the code and do event cleanup on test cases.
This commit is contained in:
11
src/event.js
11
src/event.js
@@ -1027,15 +1027,10 @@ jQuery.each(["live", "die"], function( i, name ) {
|
||||
return this;
|
||||
}
|
||||
|
||||
if ( jQuery.isFunction( data ) || data === false ) {
|
||||
fn = data;
|
||||
if ( data === false || jQuery.isFunction( data ) ) {
|
||||
fn = data || returnFalse;
|
||||
data = undefined;
|
||||
}
|
||||
|
||||
if ( fn === false ) {
|
||||
fn = returnFalse;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
types = (types || "").split(" ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user