Stefan Weiss wrote:
> The warning is likely bogus. I don't use Eclipse with JSDT, so I can't
> advise how to avoid it. You could try using alert(a.b.x), but only if
> you don't plan on using someMethod in a different context. Does the
> warning still occur if someMethod is included in the object literal?
>
> var a = {
> b: {
> x: "test"
> },
> someMethod = function(){
^
> alert(this.b.x);
> }
> };
No, a syntax error occurs instead
SCNR
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f806at$ail$1$>