mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-13 02:55:47 +01:00
Add 'spelllang'. Closes issue #530.
This commit is contained in:
@@ -57,6 +57,9 @@ var Option = Class("Option", {
|
||||
if (Set.has(this.modules.config.defaults, this.name))
|
||||
defaultValue = this.modules.config.defaults[this.name];
|
||||
|
||||
if (defaultValue == null && this.getter)
|
||||
defaultValue = this.getter();
|
||||
|
||||
if (defaultValue !== undefined) {
|
||||
if (this.type === "string")
|
||||
defaultValue = Commands.quote(defaultValue);
|
||||
|
||||
@@ -57,6 +57,7 @@ var Services = Module("Services", {
|
||||
this.add("runtime", "@mozilla.org/xre/runtime;1", ["nsIXULAppInfo", "nsIXULRuntime"]);
|
||||
this.add("rdf", "@mozilla.org/rdf/rdf-service;1", "nsIRDFService");
|
||||
this.add("sessionStore", "@mozilla.org/browser/sessionstore;1", "nsISessionStore");
|
||||
this.add("spell", "@mozilla.org/spellchecker/engine;1", "mozISpellCheckingEngine");
|
||||
this.add("stringBundle", "@mozilla.org/intl/stringbundle;1", "nsIStringBundleService");
|
||||
this.add("stylesheet", "@mozilla.org/content/style-sheet-service;1", "nsIStyleSheetService");
|
||||
this.add("subscriptLoader", "@mozilla.org/moz/jssubscript-loader;1", "mozIJSSubScriptLoader");
|
||||
|
||||
Reference in New Issue
Block a user