Compare Revisions

Adding preferences to an extension

Revision 31586:

Revision 31586 by Sheppy on

Revision 31587:

Revision 31587 by Dbabbitt on

Title:
Adding preferences to an extension
Adding preferences to an extension
Slug:
Adding_preferences_to_an_extension
Adding_preferences_to_an_extension
Tags:
Extensions, Add-ons, XUL, "Preferences system"
Extensions, Add-ons, XUL, "Preferences system"
Content:

Revision 31586
Revision 31587
n137      The <code>StockWatcher.shutdown()</code> method deactivatesn137      The <code>StockWatcher.shutdown()</code> method deactivates
> the observer on the preferences. This is also where we would add> the observer on the preferences. This is also where we would add
> any other shutdown tasks we need to perform.> any other shutdown tasks we need to perform, like actually savin
 >g the preferences.
tt143    this.prefs.setCharPref("symbol", document.getElementById("sym
 >bol").value);

Back to History