HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by davej | Hacker News Reader
Parent
Full thread
davej
·
Spot on, I do the same (but I use $this as the variable name).
View on HN
techiferous
·
I use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
SpiralLab
·
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.
Reply on news.ycombinator.com