aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorrwldrn <waldron.rick@gmail.com>2011-01-01 13:49:59 -0500
committerrwldrn <waldron.rick@gmail.com>2011-01-01 13:49:59 -0500
commit612a908514b6ad6ec35754b0193887b01ce2c9f2 (patch)
tree2e74f730ba2b2507dd85979d9747397678ca443e /src
parenteed3803c98bf5c074e40aad12f2e91435bf81154 (diff)
downloadjquery-612a908514b6ad6ec35754b0193887b01ce2c9f2.tar.gz
jquery-612a908514b6ad6ec35754b0193887b01ce2c9f2.zip
#7883 .delegate and .live should accept false as the fn arg, like bind
Diffstat (limited to 'src')
-rw-r--r--src/event.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/event.js b/src/event.js
index 675e5fff3..4d908b92d 100644
--- a/src/event.js
+++ b/src/event.js
@@ -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(" ");