[Jslib] XPCOM Helpers....
Pete Collins
pete at mozdevgroup.com
Thu Mar 29 12:05:15 PST 2007
Daniel Aquino wrote:
> What I was asking in reference to the subscript was , "are subscripts
> only used when someone wants jslib in a component?"
>
> If that is true then during a subscript load we could apply extra
> functions that replicate what the window already provides...
>
> Do you concur ?
>
>
>
subscripts are any js file that is explicitly loaded through the
"mozIJSSubScriptLoader" interface. If a script context is not provided,
then it is loaded in the current context. jsLib uses subscripts,
subscripts don't necessarily use jsLib.
If you have a script context whether a DOM window, or an XPCOM
component, the loader only loads the specified script uri into that
context. That's it.
If you want to write relevant code to make it easier to handle windows
from an XPCOM component, then yes you could then use the subscript
loader to load that code into any component you wish ...
--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