inner classes problem

J

josh

Hi I've the following problem when I try to use

AA.BB.x where isOK == false

and in fact I have the following error:

make is not defined


AA =
{
BB =
{
make : function()
{
return "no";
},

x : isOK ? "yes" : make()
}

}

why? x in that way can't be initializated to a calling function return
value?

Thanks
 
J

Joost Diepenmaat

josh said:
Hi I've the following problem when I try to use

AA.BB.x where isOK == false

and in fact I have the following error:

make is not defined

This has already been answered. And your code still doesn't do what you
claim it does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top