Skip to content

Commit

Permalink
Allow function to be passed in as a data object to bind and one. Fixe…
Browse files Browse the repository at this point in the history
…s #6993.
  • Loading branch information
jeresig committed Apr 17, 2011
1 parent 94ee3e9 commit 6e3b596
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.js
Expand Up @@ -909,7 +909,7 @@ jQuery.each(["bind", "one"], function( i, name ) {
return this; return this;
} }


if ( jQuery.isFunction( data ) || data === false ) { if ( arguments.length === 2 || data === false ) {
fn = data; fn = data;
data = undefined; data = undefined;
} }
Expand Down

0 comments on commit 6e3b596

Please sign in to comment.