"HopfZ" <> writes:
> Is this correct? The following three lines are equivalent
....
> [1] var r = o.f(a,b);
> [2] var r = o.f.call(o,a,b);
> [3] var r = o.f.apply(o,[a,b]);
Correct
> The following three lines are equivalent:
> [1'] var r = g(a,b);
> [2'] var r = g.call(this,a,b);
> [3'] var r = g.apply(this,[a,b]);
Only if used where "this" refers to the global object (i.e., the call
is in the global scope or inside a function called in this way).
/L
--
Lasse Reichstein Nielsen -
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'