diff options
author | John Resig <jeresig@gmail.com> | 2011-04-16 17:37:35 -0700 |
---|---|---|
committer | John Resig <jeresig@gmail.com> | 2011-04-16 17:37:35 -0700 |
commit | 6e3b596514d20124260bc4b3febd8dc105420626 (patch) | |
tree | 2ed372a2601608164bfe2ff9bea96d9eaf53c64a /src/event.js | |
parent | 94ee3e9743c2cab24084ae24e02871f6df4aef13 (diff) | |
download | jquery-6e3b596514d20124260bc4b3febd8dc105420626.tar.gz jquery-6e3b596514d20124260bc4b3febd8dc105420626.zip |
Allow function to be passed in as a data object to bind and one. Fixes #6993.
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 bfd263078..ee3606fe4 100644 --- a/src/event.js +++ b/src/event.js @@ -909,7 +909,7 @@ jQuery.each(["bind", "one"], function( i, name ) { return this; } - if ( jQuery.isFunction( data ) || data === false ) { + if ( arguments.length === 2 || data === false ) { fn = data; data = undefined; } |