Commit 6e3b5965 authored by John Resig's avatar John Resig

Allow function to be passed in as a data object to bind and one. Fixes #6993.

parent 94ee3e97
...@@ -909,7 +909,7 @@ jQuery.each(["bind", "one"], function( i, name ) { ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment