]> source.dussan.org Git - jquery.git/commitdiff
It seems the convention is to use `self` for caching `jQuery ( this )` instead of... 583/head
authorJustin <drakefjustin@gmail.com>
Sun, 6 Nov 2011 22:54:21 +0000 (22:54 +0000)
committerJustin <drakefjustin@gmail.com>
Sun, 6 Nov 2011 22:54:21 +0000 (22:54 +0000)
src/data.js

index 028afa5a196bb847a2c2dcac2b190fee0db0cf15..11f26565bcd1dba2a3a130dfe536676203639811 100644 (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 );
                        });
                }
        },