mirror of
https://github.com/jquery/jquery.git
synced 2026-02-01 05:05:02 -05:00
Event: Fix chaining .on() with null handlers
Fixes gh-2846
This commit is contained in:
committed by
Timmy Willison
parent
780cac802b
commit
17f0e26ad9
@@ -70,6 +70,8 @@ function on( elem, types, selector, data, fn, one ) {
|
||||
}
|
||||
if ( fn === false ) {
|
||||
fn = returnFalse;
|
||||
} else if ( !fn ) {
|
||||
return elem;
|
||||
}
|
||||
|
||||
if ( one === 1 ) {
|
||||
|
||||
Reference in New Issue
Block a user