Hey.
Let's say I have this:
test = function() {
this.init = function() {
$("#someElement").html("Hey!").mousedown(function() {
$(this).html("Clicked");
/*
Now, if I wanted it to call function "dosomething" defined in the class, how would I do that? this.dosomething() obviously doesn't work.
*/
});
}
this.dosomething = function() {
alert("Did it!");
}
}
var _go = new test();
_go.init();