I am using Simple JavaScript Inheritance by John Resig.
I know that I can use this
variable to share values between methods:
var Person = Class.extend({
init: function(isDancing){
this.dancing = isDancing;
}
});
I would like to create a pointer to this
so that it would not be overwriten later like:
$('#id').click(function() {
// this now points to selector
});
How can I create let's say that = this
pointer which would be accessible classwide?