1,007
edits
Line 279: | Line 279: | ||
== Installing your classes into Weave == | == Installing your classes into Weave == | ||
[TODO describe where to put all your code and how to make it into importable modules] | |||
In the file <tt>weave/chrome/content/fx-weave-overlay.js</tt>, find the function <tt>FxWeaveGlue()</tt>, and within the <tt>try</tt> block import your Engine class, instantiate it, and register it with Weave. Like so: | In the file <tt>weave/chrome/content/fx-weave-overlay.js</tt>, find the function <tt>FxWeaveGlue()</tt>, and within the <tt>try</tt> block import your Engine class, instantiate it, and register it with Weave. Like so: |
edits