$ self has little to do with $ , which in this case is an alias for jQuery. Some people prefer to put a dollar sign along with a variable to distinguish between regular vars and jQuery objects.
Example:
var self = 'some string'; var $self = 'another string';
They are declared as two different variables. This is like an underscore in front of private variables.
Somewhat popular template:
var foo = 'some string'; var $foo = $('.foo');
So you know that $ foo is a cached jQuery object later in the code.
David Dec 16 '09 at 18:23 2009-12-16 18:23
source share