Quantcast
Channel: What is the reason for var $this = this - Stack Overflow
Viewing all articles
Browse latest Browse all 7

Answer by Brent Rittenhouse for What is the reason for var $this = this

$
0
0

I do $this = $(this) because it seems that it would save the actual processing of that call every single time you want to use it.

Also, for the 'magic 'this'' function that someone else mentioned. It is handy to keep the original copy around.


Viewing all articles
Browse latest Browse all 7

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>