mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Removed extraneous thisObject references. Thanks to Matt Dunlap for the heads-up.
This commit is contained in:
parent
812a247dc9
commit
4397f0fd41
@ -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 ) {
|
|||||||
}) : 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 );
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user