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 ) {
return this;
}
if ( jQuery.isFunction( data ) || data === false ) {
if ( arguments.length === 2 || data === false ) {
fn = data;
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