From 4397f0fd41064346bce16772eec78cd5d2a1682e Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 14 Jan 2010 01:42:08 -0500 Subject: [PATCH] Removed extraneous thisObject references. Thanks to Matt Dunlap for the heads-up. --- src/event.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/event.js b/src/event.js index c826f17b..f36139fb 100644 --- a/src/event.js +++ b/src/event.js @@ -765,7 +765,6 @@ jQuery.each(["bind", "one"], function( i, name ) { } if ( jQuery.isFunction( data ) ) { - thisObject = fn; fn = data; data = undefined; } @@ -776,7 +775,7 @@ jQuery.each(["bind", "one"], function( i, name ) { }) : fn; return type === "unload" && name !== "one" ? - this.one( type, data, fn, thisObject ) : + this.one( type, data, fn ) : this.each(function() { jQuery.event.add( this, type, handler, data ); });