[Jslib] XPCOM Helpers....

Pete Collins pete at mozdevgroup.com
Fri Mar 30 04:56:24 PST 2007



Daniel Aquino wrote:

> well my component sees all of the included functions within the 
> external files... but each file it self does not have access to the 
> other files... they complain that things are not defined...


All the files included in a single context will be accessible in that 
context.

If an included file needs to access functions in another included file, 
then that file it needs to access needs to be included first.

  include("a");
  include("b");

"b" has access to "a".

--pete

-- 
Pete Collins - Founder, Mozdev Group Inc.
www.mozdevgroup.com
Mozilla Software Development Solutions
tel: 1-719-302-5811
fax: 1-719-302-5813



More information about the Jslib mailing list