>> You could check if a variable has been declared (one that is declared only >> in that file) > > As far as I know, such a trick is impossible in Javascript. If you try to > check a variable that hasn't been declared (using "if (myVar)"), you get an > error. I haven't found a way to be able to do that. If someone has the > clue, I would REALLY be interested (and we all could, 'cause it would mean > auto-importing of different packages, in the sense, if a package foo needs > a package bar, then when including foo, foo says 'I need bar, please > auto-include it !'). I have tried to do this for the DynAPI, but because of > the problem stated above, never managed to do that.... what about if (self["myVar"]) .... just a thought, haven't tried. _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/dynapi-dev
- [Dynapi-Dev] Simple question... Digital Strider
- RE: [Dynapi-Dev] Simple question... Lasse Lindgard
- Re: [Dynapi-Dev] Simple question... Doug Melvin
- Re: [Dynapi-Dev] Simple question... Michael Pemberton
- RE: [Dynapi-Dev] Simple question... Digital Strider
- SV: [Dynapi-Dev] Simple question... Scott Bristowe
- Re: [Dynapi-Dev] Simple question... Richard Bennett
- RE: [Dynapi-Dev] Simple question... Digital Strider
- RE: [Dynapi-Dev] Simple question... Marc van Leeuwen
- Re: [Dynapi-Dev] Simple question... Marc van Leeuwen
- Re: [Dynapi-Dev] Simple question... Michael Bürge
- Re: [Dynapi-Dev] Simple question... Björn Puttmann
- Re: [Dynapi-Dev] Simple question... Richard Bennett
- Re: [Dynapi-Dev] Simple question... Michael Buerge
- Re: [Dynapi-Dev] Simple question... Joachim Lundgren
- Re: [Dynapi-Dev] Simple question... Marc van Leeuwen
- Re: [Dynapi-Dev] Simple question... Michael Pemberton
- Re: [Dynapi-Dev] Simple question... Marc van Leeuwen
- Re: [Dynapi-Dev] Simple question... Michael Buerge
- Re: [Dynapi-Dev] Simple question... Michael Pemberton
- RE: [Dynapi-Dev] Simple question... Colin Thompson