aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2010-01-14 01:42:08 -0500
committerJohn Resig <jeresig@gmail.com>2010-01-14 01:42:08 -0500
commit4397f0fd41064346bce16772eec78cd5d2a1682e (patch)
tree76290deca5d176562515288f7fa684a5ea912605 /src
parent812a247dc997fa09583c0557c6173f9ec58e7d60 (diff)
downloadjquery-4397f0fd41064346bce16772eec78cd5d2a1682e.tar.gz
jquery-4397f0fd41064346bce16772eec78cd5d2a1682e.zip
Removed extraneous thisObject references. Thanks to Matt Dunlap for the heads-up.
Diffstat (limited to 'src')
-rw-r--r--src/event.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/event.js b/src/event.js
index c826f17b1..f36139fb5 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 );
});