News for hackers. Stuff that matters.
Re:Finally someone makes sense of JavaScript's this keyword by davej on Saturday April 23, 2011 @12:26PM (#2477069)
Spot on, I do the same (but I use $this as the variable name).
Re:Finally someone makes sense of JavaScript's this keyword by techiferous on Saturday April 23, 2011 @03:48PM (#2477398)
I use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
Re:Finally someone makes sense of JavaScript's this keyword by SpiralLab on Saturday April 23, 2011 @05:17PM (#2477613)
Same here.

     var _this = this;    //vanilla
     var $this = $(this); //jQuery
Though, I have encountered people who are really against the $var for stylistic reasons - so ymmv.