Hi,
> my question is simple : isn't there a way do define the class member
> functions in such a way
> that the scope (this) will refer to the object instance ?
`this` is never scope in Javascript (unless you use `with`, which
simulates scope to an extent). It's just an object reference. If you
w
Thanks a lot for your reply T.J
I was partially familiar with this mechanism, and now I know more :)
anyway, let me re-phrase my question
we all know that an event received on a DOM element (i.e button onclick
event for example)
will have the "this" equals to the DOM element
my question is simple
Hi,
> is there a way that I can get rid of all these usages of "this"
No. `this` is different in Javascript than in some other languages
with the same keyword, in several ways. One of these is that
unqualified references like your _div (without anything in front of
it) are not automatically resol