aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2011-10-11 20:30:07 -0400
committerDave Methvin <dave.methvin@gmail.com>2011-10-11 20:31:45 -0400
commit6afc2c074bec5c19063c8f8ebca6bfb53c7d4cef (patch)
tree50fadfbe4899b96de57a8973b5385c2f48cf0e44 /src/event.js
parentd29182e8d00b08def0f37fe7e77d9836e39b83a8 (diff)
downloadjquery-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.js2
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;