7 ms·
What is the problem with `$this = $(this)` ? You used `that` but I didn't get that.
by cturhan 13y ago
What is the problem with `$this = $(this)` ?
You used `that` but I didn't get that.
- kolodny 13y agoOnce I set up an alias for `this` I try to only use that from then on to be consistent. The reason I do that in the first place is in case I need to pass it to a callback, I can just use the alias and don't have to worry about when `this` will be the global object
- jasonlotito 13y agoIf you minimize your javascript, `that` can be minimized, `this` cannot.