Skip to content
Permalink
Browse files

Removed extraneous thisObject references. Thanks to Matt Dunlap for t…

…he heads-up.
  • Loading branch information
jeresig committed Jan 14, 2010
1 parent 812a247 commit 4397f0fd41064346bce16772eec78cd5d2a1682e
Showing with 1 addition and 2 deletions.
  1. +1 −2 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 );
});

0 comments on commit 4397f0f

Please sign in to comment.
You can’t perform that action at this time.