Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

What do the JS files in components/ do?

0 views
Skip to first unread message

Andreas M

unread,
May 14, 2008, 6:11:36 PM5/14/08
to
Hi,

there is a bunch of Javascript files in "Mozilla
Thunderbird\components\". What are these doing?

All I could understand is, that they do some stuff with the components,
but what is the result? Thank you.

--
Bye,
Andreas M.

Prasad Sunkari

unread,
May 14, 2008, 11:48:50 PM5/14/08
to

They are all components written in Javascript. As with any C++
component, they also implement interfaces, register themselves and
interact with the application over XPCOM (actually, XPConnect).

To pick an example - the simplest one there is probably the
jsconsole-clhandler.js, which implements "nsICommandLineHandler",
registers itself to the "command-line-handler" category and handles the
command line switch "-jsconsole".

Prasad

0 new messages