From 6e3b596514d20124260bc4b3febd8dc105420626 Mon Sep 17 00:00:00 2001 From: John Resig Date: Sat, 16 Apr 2011 17:37:35 -0700 Subject: [PATCH] Allow function to be passed in as a data object to bind and one. Fixes #6993. --- src/event.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event.js b/src/event.js index bfd26307..ee3606fe 100644 --- a/src/event.js +++ b/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; }