Commit abcdaf90 authored by Justin's avatar Justin

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

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