On Jul 28, 11:35 am, Christof Donat <[EMAIL PROTECTED]> wrote:
> Hi,
>
> > If you want to call a method of a CLASS
> > then yes it will work because 'this' is then no longer tied to a
> > specific OBJECT.
>
> Yes, it is. It is tied to the "class object", which is the constructor
> function object in JavaScript:

Thanks for the clarification. By "specific object" i meant more
something along the lines of "a specific object which the client
creates," e.g.:

var x = new Foo();
x.someFunc();

i wasn't aware that 'this' defaults to the ctor object. Strange
behaviour.


Reply via email to