why not do it like the following: is = new Browser(); if (typeof DynAPI == 'object') DynAPI.browser = is;
this will work in all situations Michael ps: sorry richard for getting this twice. i just did a reply without looking at the address. wasn't this supposed to be fixed? > From: "Richard Bennett" <[EMAIL PROTECTED]> > Date: Mon, 29 Oct 2001 12:43:45 +0100 > To: <[EMAIL PROTECTED]> > Subject: [Dynapi-Dev] is DynAPI.browser being used anywhere? > > Hi, > I was wondering if we actually use DynAPI.browser at all? > currently it is being initialized in browser.js, like this: > > is = DynAPI.browser = new Browser(); > > this means the browser.js file will cause errors when loaded outside a > DynAPI context, or before the other Dynapi files are loaded. > > If we are not using DynAPI.browser anywhere, we can change the line in > browser.js too: > > is = new Browser(); > > making the file much more flexible in use. > > Richard. > www.richardinfo.com > > > _______________________________________________ > Dynapi-Dev mailing list > [EMAIL PROTECTED] > http://www.mail-archive.com/[email protected]/ > _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[email protected]/
