Skip to content
Permalink
Browse files

Allow function to be passed in as a data object to bind and one. Fixe…

…s #6993.
  • Loading branch information...
jeresig committed Apr 17, 2011
1 parent 94ee3e9 commit 6e3b596514d20124260bc4b3febd8dc105420626
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;
}

0 comments on commit 6e3b596

Please sign in to comment.
You can’t perform that action at this time.