mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Merge pull request #583 from JustinDrake/patch-2
`self` instead of `$this`
This commit is contained in:
commit
f5250e1594
@ -294,12 +294,12 @@ jQuery.fn.extend({
|
||||
|
||||
} else {
|
||||
return this.each(function() {
|
||||
var $this = jQuery( this ),
|
||||
var self = jQuery( this ),
|
||||
args = [ parts[0], value ];
|
||||
|
||||
$this.triggerHandler( "setData" + parts[1] + "!", args );
|
||||
self.triggerHandler( "setData" + parts[1] + "!", args );
|
||||
jQuery.data( this, key, value );
|
||||
$this.triggerHandler( "changeData" + parts[1] + "!", args );
|
||||
self.triggerHandler( "changeData" + parts[1] + "!", args );
|
||||
});
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user