News for hackers. Stuff that matters.
Re:How to Write Superior jQuery Plugins by omgsean on Monday February 27, 2012 @10:58AM (#3639373)
When I'm writing jQuery code I like to use $varName to refer to vars which store a jQuery object, and plain old varName for everything else. This is a fairly common technique that I picked up from I think Paul Irish or Rebecca Murphey.

In your case of $this and this I would generally declare var self = this rather than var $this = this. Fairly often if "this" is an HTML element I'll declare var $this = $(this).

Not saying your way is wrong but I do find it helps me to keep my jQuerified and non jQuerified variables visibly separate.

Re:How to Write Superior jQuery Plugins by nvitas on Monday February 27, 2012 @01:09PM (#3639891)
My buddy wrote the article so I can't comment on his stance but I'm with you on the var self = this;

Like you I like to avoid the use of "$" character unless dealing with jQuerified variables

Re:How to Write Superior jQuery Plugins by Gigablah on Tuesday February 28, 2012 @12:35AM (#3642042)
I've seen some code (mostly from Backbone.js apps) use "var that = this;" instead.
Re:How to Write Superior jQuery Plugins by rduchnik on Thursday March 01, 2012 @04:46PM (#3654203)
I like the $this just because I'm used to it from codeigniter.