Skip to content
Permalink
Browse files

Merge pull request #583 from JustinDrake/patch-2

`self` instead of `$this`
  • Loading branch information...
dmethvin committed Nov 6, 2011
2 parents a211ea2 + abcdaf9 commit f5250e15946b111de2bdc5ff5d321f3601db3e0a
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 f5250e1

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