It seems the convention is to use self for caching jQuery ( this ) instead of using $this.

This commit is contained in:
Justin
2011-11-06 22:54:21 +00:00
parent a211ea27d2
commit abcdaf9043

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