3 ms·
Spot on, I do the same (but I use $this as the variable name).
by davej 16y ago
Spot on, I do the same (but I use $this as the variable name).
- techiferous 16y agoI use the $ sigil to differentiate between variables that are DOM elements and variables that are jQuery-wrapped DOM elements.
- SpiralLab 16y agoSame 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.