diff options
author | Doug Kearns <dougkearns@gmail.com> | 2013-09-05 22:29:04 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2013-09-05 22:29:04 +1000 |
commit | a1a1b03e64f84f4aa026c72166859eb3cef95b29 (patch) | |
tree | 170e02a5056405b86218bb35e879daee698299c2 | |
parent | 48209c3642d7afabac6a63c06e5e4de82fdfa921 (diff) | |
download | pentadactyl-a1a1b03e64f84f4aa026c72166859eb3cef95b29.tar.gz |
Move 'helpfile' definition to the Help module.
-rw-r--r-- | common/content/dactyl.js | 4 | ||||
-rw-r--r-- | common/modules/help.jsm | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js index b197abbc..64aa9135 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1403,10 +1403,6 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { groups.every(function (g) !g.validator || g.validator(val)) }); - options.add(["helpfile", "hf"], - "Name of the main help file", - "string", "intro"); - options.add(["loadplugins", "lpl"], "A regexp list that defines which plugins are loaded at startup and via :loadplugins", "regexplist", "'\\.(js|" + config.fileExtension + ")$'"); diff --git a/common/modules/help.jsm b/common/modules/help.jsm index c8ba828e..623aeca1 100644 --- a/common/modules/help.jsm +++ b/common/modules/help.jsm @@ -445,6 +445,13 @@ var Help = Module("Help", { javascript: function initJavascript(dactyl, modules, window) { modules.JavaScript.setCompleter([modules.help.exportHelp], [function (context, args) overlay.activeModules.completion.file(context)]); + }, + options: function initOptions(dactyl, modules, window) { + const { options } = modules; + + options.add(["helpfile", "hf"], + "Name of the main help file", + "string", "intro"); } }); |