Skip to content
Permalink
Browse files

It seems the convention is to use `self` for caching `jQuery ( this )…

…` instead of using `$this`.
  • Loading branch information...
JustinDrake committed Nov 6, 2011
1 parent a211ea2 commit abcdaf904303b4e30ed44313e6703d4387e9f1f1
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/data.js
@@ -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 );
});
}
},

0 comments on commit abcdaf9

Please sign in to comment.
You can’t perform that action at this time.