SeaMonkey:Toolkit Transition:PrefwindowPanes:HowTo: Difference between revisions

Jump to navigation Jump to search
Line 60: Line 60:


The old call to ''parent.initPanel'' is not needed anymore, panel initialization is done by the backend. If the panel's loaded scripts contain the special Startup() function, it will be called automatically on panel load.
The old call to ''parent.initPanel'' is not needed anymore, panel initialization is done by the backend. If the panel's loaded scripts contain the special Startup() function, it will be called automatically on panel load.
Although the script files are loaded into the object context of the <prefpane>, there is no need to qualify each call etc. inside with <tt>this</tt> &mdash; the subScriptLoader does handle this automatically! Please include a note in the script file about which <prefpane> is the target, eg. like in ''pref-navigator.js'':
// The contents of this file will be loaded into the scope of the object
// <prefpane id="navigator_pane">!


==== 3. Preferences ====
==== 3. Preferences ====
235

edits

Navigation menu