diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-10-11 20:30:07 -0400 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-10-11 20:31:45 -0400 |
commit | 6afc2c074bec5c19063c8f8ebca6bfb53c7d4cef (patch) | |
tree | 50fadfbe4899b96de57a8973b5385c2f48cf0e44 /src/event.js | |
parent | d29182e8d00b08def0f37fe7e77d9836e39b83a8 (diff) | |
download | jquery-6afc2c074bec5c19063c8f8ebca6bfb53c7d4cef.tar.gz jquery-6afc2c074bec5c19063c8f8ebca6bfb53c7d4cef.zip |
Fixes #10477. Get `.off(type, null, fn)` right.
Diffstat (limited to 'src/event.js')
-rw-r--r-- | src/event.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js index 875f014d7..17872f02d 100644 --- a/src/event.js +++ b/src/event.js @@ -953,7 +953,7 @@ jQuery.fn.extend({ } return this; } - if ( typeof selector !== "string" ) { + if ( selector === false || typeof selector === "function" ) { // ( types [, fn] ) fn = selector; selector = undefined; |