Merge pull request #583 from JustinDrake/patch-2

`self` instead of `$this`
This commit is contained in:
Dave Methvin
2011-11-06 14:56:48 -08:00

View File

@@ -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 );
});
}
},