mozdev.org

gnusto    

resources:
reference:

mozilla-glue.js

Read the code

mozilla-glue.js is the central JavaScript file in Gnusto. It currently has three purposes, which will be split up when the file is refactored; you are warned, however, that this file is currently a mess.

The identifier prefix for mozilla-glue is glue.

It gives the engine what it needs to function.

Reason for the name: The Gnusto engine was designed to be usable in many circumstances: Mozilla apps, simple browser-independent web pages and command-line JavaScript shells (much of the original development was done on a machine without even an X server). This design called for the engine to be supplied with "glue" code wherever it was installed, to provide anything which was dependent on the local environment.

mozilla-glue continues to supply many of the engine's needs, although the engine makes much less use of callbacks now. Eventually the engine will progress to the point where no callbacks are needed, and then this function will disappear.

Functions which provide this

It powers the user interface.

Almost all the on-event handlers in the user interface call functions in mozilla-glue.

The future: With the advent of Darii, all such functions should become Darii actions.

It's a dumping ground for code that doesn't fit anywhere else.

This is a positively bad idea: it has made this file into a big mess. Code like this should be moved to new sections soon.

Other bits of the code

For questions or comments about gnusto, please send a message to the gnusto mailing list.
Copyright © 2000-2008. All rights reserved. Terms of Use & Privacy Policy.