Commit 4397f0fd authored by John Resig's avatar John Resig

Removed extraneous thisObject references. Thanks to Matt Dunlap for the heads-up.

parent 812a247d
...@@ -765,7 +765,6 @@ jQuery.each(["bind", "one"], function( i, name ) { ...@@ -765,7 +765,6 @@ jQuery.each(["bind", "one"], function( i, name ) {
} }
if ( jQuery.isFunction( data ) ) { if ( jQuery.isFunction( data ) ) {
thisObject = fn;
fn = data; fn = data;
data = undefined; data = undefined;
} }
...@@ -776,7 +775,7 @@ jQuery.each(["bind", "one"], function( i, name ) { ...@@ -776,7 +775,7 @@ jQuery.each(["bind", "one"], function( i, name ) {
}) : fn; }) : fn;
return type === "unload" && name !== "one" ? return type === "unload" && name !== "one" ?
this.one( type, data, fn, thisObject ) : this.one( type, data, fn ) :
this.each(function() { this.each(function() {
jQuery.event.add( this, type, handler, data ); jQuery.event.add( this, type, handler, data );
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment