mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Allow function to be passed in as a data object to bind and one. Fixes #6993.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user