diff options
author | Doug Kearns <dougkearns@gmail.com> | 2012-10-11 01:08:36 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2012-10-11 01:08:36 +1100 |
commit | 53f3ea342cc3ec47357c0836e89c127742762453 (patch) | |
tree | 6f5bd10d1c6a7641f6709a5f3bfcd4cf84b07730 /common | |
parent | 50597cc80a48f4a192f44723039e11348b4a6c84 (diff) | |
download | pentadactyl-53f3ea342cc3ec47357c0836e89c127742762453.tar.gz |
Normalise naming of module initializer functions.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/abbreviations.js | 4 | ||||
-rw-r--r-- | common/content/autocommands.js | 10 | ||||
-rw-r--r-- | common/content/bookmarks.js | 8 | ||||
-rw-r--r-- | common/content/commandline.js | 8 | ||||
-rw-r--r-- | common/content/dactyl.js | 14 | ||||
-rw-r--r-- | common/content/editor.js | 12 | ||||
-rw-r--r-- | common/content/events.js | 8 | ||||
-rw-r--r-- | common/content/history.js | 6 | ||||
-rw-r--r-- | common/content/marks.js | 6 | ||||
-rw-r--r-- | common/content/quickmarks.js | 6 | ||||
-rw-r--r-- | common/content/tabs.js | 12 | ||||
-rw-r--r-- | common/modules/addons.jsm | 4 | ||||
-rw-r--r-- | common/modules/completion.jsm | 4 | ||||
-rw-r--r-- | common/modules/finder.jsm | 4 | ||||
-rw-r--r-- | common/modules/help.jsm | 8 | ||||
-rw-r--r-- | common/modules/io.jsm | 8 | ||||
-rw-r--r-- | common/modules/javascript.jsm | 2 | ||||
-rw-r--r-- | common/modules/sanitizer.jsm | 10 | ||||
-rw-r--r-- | common/modules/styles.jsm | 12 |
19 files changed, 73 insertions, 73 deletions
diff --git a/common/content/abbreviations.js b/common/content/abbreviations.js index 08294970..e007bbd0 100644 --- a/common/content/abbreviations.js +++ b/common/content/abbreviations.js @@ -299,7 +299,7 @@ var Abbreviations = Module("abbreviations", { user: contexts.hives.abbrevs.user }); }, - completion: function () { + completion: function initCompletion() { completion.abbreviation = function abbreviation(context, modes, group) { group = group || abbreviations.user; let fn = modes ? function (abbr) abbr.inModes(modes) : util.identity; @@ -307,7 +307,7 @@ var Abbreviations = Module("abbreviations", { context.completions = group.merged.filter(fn); }; }, - commands: function () { + commands: function initCommands() { function addAbbreviationCommands(modes, ch, modeDescription) { modes.sort(); modeDescription = modeDescription ? " in " + modeDescription + " mode" : ""; diff --git a/common/content/autocommands.js b/common/content/autocommands.js index 31c3ad90..2937c0f6 100644 --- a/common/content/autocommands.js +++ b/common/content/autocommands.js @@ -168,7 +168,7 @@ var AutoCommands = Module("autocommands", { } }, { }, { - contexts: function () { + contexts: function initContexts() { update(AutoCommands.prototype, { hives: contexts.Hives("autocmd", AutoCmdHive), user: contexts.hives.autocmd.user, @@ -176,7 +176,7 @@ var AutoCommands = Module("autocommands", { matchingHives: function matchingHives(uri, doc) contexts.matchingGroups(uri, doc).autocmd }); }, - commands: function () { + commands: function initCommands() { commands.add(["au[tocmd]"], "Execute commands automatically on events", function (args) { @@ -280,15 +280,15 @@ var AutoCommands = Module("autocommands", { }); }); }, - completion: function () { + completion: function initCompletion() { completion.autocmdEvent = function autocmdEvent(context) { context.completions = Iterator(config.autocommands); }; }, - javascript: function () { + javascript: function initJavascript() { JavaScript.setCompleter(AutoCmdHive.prototype.get, [function () Iterator(config.autocommands)]); }, - options: function () { + options: function initOptions() { options.add(["eventignore", "ei"], "List of autocommand event names which should be ignored", "stringlist", "", diff --git a/common/content/bookmarks.js b/common/content/bookmarks.js index 195bee66..b3b0869c 100644 --- a/common/content/bookmarks.js +++ b/common/content/bookmarks.js @@ -402,7 +402,7 @@ var Bookmarks = Module("bookmarks", { } }, { }, { - commands: function () { + commands: function initCommands() { // TODO: Clean this up. const tags = { names: ["-tags", "-T"], @@ -565,7 +565,7 @@ var Bookmarks = Module("bookmarks", { privateData: true }); }, - mappings: function () { + mappings: function initMappings() { var myModes = config.browserModes; mappings.add(myModes, ["a"], @@ -605,7 +605,7 @@ var Bookmarks = Module("bookmarks", { "Toggle bookmarked state of current URL", function () { bookmarks.toggle(buffer.uri.spec); }); }, - options: function () { + options: function initOptions() { options.add(["defsearch", "ds"], "The default search engine", "string", "google", @@ -622,7 +622,7 @@ var Bookmarks = Module("bookmarks", { { completer: function completer(context) completion.searchEngine(context, true), }); }, - completion: function () { + completion: function initCompletion() { completion.bookmark = function bookmark(context, tags, extra) { context.title = ["Bookmark", "Title"]; context.format = bookmarks.format; diff --git a/common/content/commandline.js b/common/content/commandline.js index c3187596..b72ef0c3 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -1593,7 +1593,7 @@ var CommandLine = Module("commandline", { return arg; } }, { - commands: function init_commands() { + commands: function initCommands() { [ { name: "ec[ho]", @@ -1679,7 +1679,7 @@ var CommandLine = Module("commandline", { bases: [modes.INSERT] }); }, - mappings: function init_mappings() { + mappings: function initMappings() { mappings.add([modes.COMMAND], [":"], "Enter Command Line mode", @@ -1809,7 +1809,7 @@ var CommandLine = Module("commandline", { bind(["<C-]>", "<C-5>"], "Expand command line abbreviation", function () { editor.expandAbbreviation(modes.COMMAND_LINE); }); }, - options: function init_options() { + options: function initOptions() { options.add(["history", "hi"], "Number of Ex commands and search patterns to store in the command-line history", "number", 500, @@ -1825,7 +1825,7 @@ var CommandLine = Module("commandline", { "number", 100, { validator: function (value) value >= 0 }); }, - sanitizer: function init_sanitizer() { + sanitizer: function initSanitizer() { sanitizer.addItem("commandline", { description: "Command-line and search history", persistent: true, diff --git a/common/content/dactyl.js b/common/content/dactyl.js index ce461416..179975f7 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1234,7 +1234,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }, { toolbarHidden: function hidden(elem) (elem.getAttribute("autohide") || elem.getAttribute("collapsed")) == "true" }, { - cache: function () { + cache: function initCache() { cache.register("help/plugins.xml", function () { // Process plugin help entries. XML.ignoreWhiteSpace = XML.prettyPrinting = false; @@ -1315,11 +1315,11 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { </overlay>; }); }, - events: function () { + events: function initEvents() { events.listen(window, dactyl, "events", true); }, // Only general options are added here, which are valid for all Dactyl extensions - options: function () { + options: function initOptions() { options.add(["errorbells", "eb"], "Ring the bell when an error message is displayed", "boolean", false); @@ -1494,7 +1494,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }); }, - mappings: function () { + mappings: function initMappings() { if (dactyl.has("session")) mappings.add([modes.NORMAL], ["ZQ"], "Quit and don't save the session", @@ -1505,7 +1505,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { function () { dactyl.quit(true); }); }, - commands: function () { + commands: function initCommands() { commands.add(["dia[log]"], "Open a " + config.appName + " dialog", function (args) { @@ -1838,7 +1838,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }, - completion: function () { + completion: function initCompletion() { completion.dialog = function dialog(context) { context.title = ["Dialog"]; context.filters.push(function ({ item }) !item[2] || item[2]()); @@ -1869,7 +1869,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { context.completions = dactyl.windows; }; }, - load: function () { + load: function initLoad() { dactyl.triggerObserver("load"); dactyl.log(_("dactyl.modulesLoaded"), 3); diff --git a/common/content/editor.js b/common/content/editor.js index 63ec3eb6..b86b4d9a 100644 --- a/common/content/editor.js +++ b/common/content/editor.js @@ -688,7 +688,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { return DOM(elem).editor; } }, { - modes: function init_modes() { + modes: function initModes() { modes.addMode("OPERATOR", { char: "o", description: "Mappings which move the cursor", @@ -745,7 +745,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { bases: [modes.INSERT] }); }, - commands: function init_commands() { + commands: function initCommands() { commands.add(["reg[isters]"], "List the contents of known registers", function (args) { @@ -753,7 +753,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { }, { argCount: "*" }); }, - completion: function init_completion() { + completion: function initCompletion() { completion.register = function complete_register(context) { context = context.fork("registers"); context.keys = { text: util.identity, description: editor.closure.getRegister }; @@ -777,7 +777,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { }); }; }, - mappings: function init_mappings() { + mappings: function initMappings() { Map.types["editor"] = { preExecute: function preExecute(args) { @@ -1346,7 +1346,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { bind(["<C-n>"], "Select the next autocomplete result", function () { events.feedkeys("<Down>", { skipmap: true }); }); }, - options: function init_options() { + options: function initOptions() { options.add(["editor"], "The external text editor", "string", 'gvim -f +<line> +"sil! call cursor(0, <column>)" <file>', { @@ -1391,7 +1391,7 @@ var Editor = Module("editor", XPCOM(Ci.nsIEditActionListener, ModuleBase), { } }); }, - sanitizer: function () { + sanitizer: function initSanitizer() { sanitizer.addItem("registers", { description: "Register values", persistent: true, diff --git a/common/content/events.js b/common/content/events.js index ac846d8c..b003a0f2 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -983,7 +983,7 @@ var Events = Module("events", { }); }, - commands: function () { + commands: function initCommands() { commands.add(["delmac[ros]"], "Delete macros", function (args) { @@ -1009,13 +1009,13 @@ var Events = Module("events", { completer: function (context) completion.macro(context) }); }, - completion: function () { + completion: function initCompletion() { completion.macro = function macro(context) { context.title = ["Macro", "Keys"]; context.completions = [item for (item in events.getMacros())]; }; }, - mappings: function () { + mappings: function initMappings() { mappings.add([modes.MAIN], ["<A-b>", "<pass-next-key-builtin>"], "Process the next key as a builtin mapping", @@ -1097,7 +1097,7 @@ var Events = Module("events", { }, { count: true }); }, - options: function () { + options: function initOptions() { const Hive = Class("Hive", { init: function init(values, map) { this.name = "passkeys:" + map; diff --git a/common/content/history.js b/common/content/history.js index 94985d26..fa6bf848 100644 --- a/common/content/history.js +++ b/common/content/history.js @@ -175,7 +175,7 @@ var History = Module("history", { } }, { }, { - commands: function () { + commands: function initCommands() { commands.add(["ba[ck]"], "Go back in the browser history", function (args) { @@ -321,7 +321,7 @@ var History = Module("history", { { argCount: "0" }); }, - completion: function () { + completion: function initCompletion() { completion.domain = function (context) { context.anchored = false; context.compare = function (a, b) String.localeCompare(a.key, b.key); @@ -351,7 +351,7 @@ var History = Module("history", { completion.addUrlCompleter("history", "History", completion.history); }, - mappings: function () { + mappings: function initMappings() { function bind() mappings.add.apply(mappings, [config.browserModes].concat(Array.slice(arguments))); bind(["<C-o>"], "Go to an older position in the jump list", diff --git a/common/content/marks.js b/common/content/marks.js index e32d0c6f..91ccb120 100644 --- a/common/content/marks.js +++ b/common/content/marks.js @@ -332,7 +332,7 @@ var Marks = Module("marks", { { arg: true }); }, - commands: function () { + commands: function initCommands() { commands.add(["delm[arks]"], "Delete the specified marks", function (args) { @@ -372,7 +372,7 @@ var Marks = Module("marks", { }); }, - completion: function () { + completion: function initCompletion() { completion.mark = function mark(context) { function percent(i) Math.round(i * 100); @@ -383,7 +383,7 @@ var Marks = Module("marks", { context.completions = marks.all; }; }, - sanitizer: function () { + sanitizer: function initSanitizer() { sanitizer.addItem("marks", { description: "Local and URL marks", persistent: true, diff --git a/common/content/quickmarks.js b/common/content/quickmarks.js index d2a5627c..f2a18d83 100644 --- a/common/content/quickmarks.js +++ b/common/content/quickmarks.js @@ -118,7 +118,7 @@ var QuickMarks = Module("quickmarks", { } }, { }, { - commands: function () { + commands: function initCommands() { commands.add(["delqm[arks]"], "Delete the specified QuickMarks", function (args) { @@ -175,13 +175,13 @@ var QuickMarks = Module("quickmarks", { completer: function (context) completion.quickmark(context), }); }, - completion: function () { + completion: function initCompletion() { completion.quickmark = function (context) { context.title = ["QuickMark", "URL"]; context.generate = function () Iterator(quickmarks._qmarks); }; }, - mappings: function () { + mappings: function initMappings() { var myModes = config.browserModes; mappings.add(myModes, diff --git a/common/content/tabs.js b/common/content/tabs.js index 9b906607..c1243672 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -596,10 +596,10 @@ var Tabs = Module("tabs", { services.sessionStore.setTabState(to, tabState); } }, { - load: function init_load() { + load: function initLoad() { tabs.updateTabCount(); }, - commands: function init_commands() { + commands: function initCommands() { [ { name: ["bd[elete]"], @@ -1015,7 +1015,7 @@ var Tabs = Module("tabs", { { argCount: "0" }); } }, - completion: function init_completion() { + completion: function initCompletion() { completion.buffer = function buffer(context, visible) { let { tabs } = modules; @@ -1096,7 +1096,7 @@ var Tabs = Module("tabs", { }; }; }, - events: function init_events() { + events: function initEvents() { let tabContainer = config.tabbrowser.mTabContainer; function callback() { tabs.timeout(function () { this.updateTabCount(); }); @@ -1105,7 +1105,7 @@ var Tabs = Module("tabs", { events.listen(tabContainer, event, callback, false); events.listen(tabContainer, "TabSelect", tabs.closure._onTabSelect, false); }, - mappings: function init_mappings() { + mappings: function initMappings() { mappings.add([modes.COMMAND], ["<C-t>", "<new-tab-next>"], "Execute the next mapping in a new tab", @@ -1199,7 +1199,7 @@ var Tabs = Module("tabs", { { count: true }); } }, - options: function init_options() { + options: function initOptions() { options.add(["showtabline", "stal"], "Define when the tab bar is visible", "string", true, diff --git a/common/modules/addons.jsm b/common/modules/addons.jsm index 8ef8c580..f2c16f24 100644 --- a/common/modules/addons.jsm +++ b/common/modules/addons.jsm @@ -357,7 +357,7 @@ var Addons = Module("addons", { .toObject()) }, { }, { - commands: function (dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { CommandOption, commands, completion, io } = modules; commands.add(["addo[ns]", "ao"], @@ -458,7 +458,7 @@ var Addons = Module("addons", { }); }); }, - completion: function (dactyl, modules, window) { + completion: function initCompletion(dactyl, modules, window) { completion.addonType = function addonType(context) { let base = ["extension", "theme"]; function update(types) { diff --git a/common/modules/completion.jsm b/common/modules/completion.jsm index 807d8ce7..8197208d 100644 --- a/common/modules/completion.jsm +++ b/common/modules/completion.jsm @@ -1114,7 +1114,7 @@ var Completion = Module("completion", { get options() this.modules.options }); }, - commands: function (dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { commands, completion } = modules; commands.add(["contexts"], "List the completion contexts used during completion of an Ex command", @@ -1135,7 +1135,7 @@ var Completion = Module("completion", { literal: 0 }); }, - options: function (dactyl, modules, window) { + options: function initOptions(dactyl, modules, window) { const { completion, options } = modules; let wildmode = { values: { diff --git a/common/modules/finder.jsm b/common/modules/finder.jsm index 5addb732..5117909a 100644 --- a/common/modules/finder.jsm +++ b/common/modules/finder.jsm @@ -261,7 +261,7 @@ var RangeFinder = Module("rangefinder", { get onSubmit() modules.rangefinder.closure.onSubmit }); }, - mappings: function (dactyl, modules, window) { + mappings: function initMappings(dactyl, modules, window) { const { Buffer, buffer, config, mappings, modes, rangefinder } = modules; var myModes = config.browserModes.concat([modes.CARET]); @@ -296,7 +296,7 @@ var RangeFinder = Module("rangefinder", { }); }, - options: function (dactyl, modules, window) { + options: function initOptions(dactyl, modules, window) { const { options, rangefinder } = modules; options.add(["hlfind", "hlf"], diff --git a/common/modules/help.jsm b/common/modules/help.jsm index 64973466..cf9d3cea 100644 --- a/common/modules/help.jsm +++ b/common/modules/help.jsm @@ -413,7 +413,7 @@ var Help = Module("Help", { }) }, { }, { - commands: function init_commands(dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { commands, completion, help } = modules; [ @@ -440,7 +440,7 @@ var Help = Module("Help", { }); }); }, - completion: function init_completion(dactyl, modules, window) { + completion: function initCompletion(dactyl, modules, window) { const { completion } = modules; completion.help = function completion_help(context, consolidated) { @@ -452,7 +452,7 @@ var Help = Module("Help", { context.keys = { text: 0, description: function () "all" }; }; }, - mappings: function init_mappings(dactyl, modules, window) { + mappings: function initMappings(dactyl, modules, window) { const { help, mappings, modes } = modules; mappings.add([modes.MAIN], ["<open-help>", "<F1>"], @@ -463,7 +463,7 @@ var Help = Module("Help", { "Open the single, consolidated help page", function () { modules.ex.helpall(); }); }, - javascript: function init_javascript(dactyl, modules, window) { + javascript: function initJavascript(dactyl, modules, window) { modules.JavaScript.setCompleter([modules.help.exportHelp], [function (context, args) overlay.activeModules.completion.file(context)]); } diff --git a/common/modules/io.jsm b/common/modules/io.jsm index ab3339e0..bd8ed81e 100644 --- a/common/modules/io.jsm +++ b/common/modules/io.jsm @@ -575,7 +575,7 @@ var IO = Module("io", { */ PATH_SEP: deprecated("File.PATH_SEP", { get: function PATH_SEP() File.PATH_SEP }) }, { - commands: function init_commands(dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { commands, completion, io } = modules; commands.add(["cd", "chd[ir]"], @@ -929,7 +929,7 @@ unlet s:cpo_save literal: 0 }); }, - completion: function init_completion(dactyl, modules, window) { + completion: function initCompletion(dactyl, modules, window) { const { completion, io } = modules; completion.charset = function (context) { @@ -1077,7 +1077,7 @@ unlet s:cpo_save completion.file(context, full); }); }, - javascript: function init_javascript(dactyl, modules, window) { + javascript: function initJavascript(dactyl, modules, window) { modules.JavaScript.setCompleter([File, File.expandPath], [function (context, obj, args) { context.quote[2] = ""; @@ -1096,7 +1096,7 @@ unlet s:cpo_save input: true }); }, - options: function init_options(dactyl, modules, window) { + options: function initOptions(dactyl, modules, window) { const { completion, options } = modules; var shell, shellcmdflag; diff --git a/common/modules/javascript.jsm b/common/modules/javascript.jsm index 85e27052..0d0efe16 100644 --- a/common/modules/javascript.jsm +++ b/common/modules/javascript.jsm @@ -879,7 +879,7 @@ var JavaScript = Module("javascript", { bind(["<C-b>", "<PageUp>"], "Scroll up half a page", function ({ self }) { self.repl.scrollVertical("pages", -1); }); }, - options: function (dactyl, modules, window) { + options: function initOptions(dactyl, modules, window) { modules.options.add(["jsdebugger", "jsd"], "Enable the JavaScript debugger service for use in JavaScript completion", "boolean", false, { diff --git a/common/modules/sanitizer.jsm b/common/modules/sanitizer.jsm index 04e11cda..b50b0c03 100644 --- a/common/modules/sanitizer.jsm +++ b/common/modules/sanitizer.jsm @@ -386,12 +386,12 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef yield p; } }, { - load: function (dactyl, modules, window) { + load: function initLoad(dactyl, modules, window) { if (!sanitizer.firstRun++ && sanitizer.runAtShutdown && !sanitizer.ranAtShutdown) sanitizer.sanitizeItems(null, Range(), null, "shutdown"); sanitizer.ranAtShutdown = false; }, - autocommands: function (dactyl, modules, window) { + autocommands: function initAutocommands(dactyl, modules, window) { const { autocommands } = modules; storage.addObserver("private-mode", @@ -406,7 +406,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef autocommands.trigger("Sanitize", { name: event.substr("clear-".length), domain: value[1] }); }, window); }, - commands: function (dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { commands } = modules; commands.add(["sa[nitize]"], "Clear private data", @@ -565,7 +565,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef }, }); }, - completion: function (dactyl, modules, window) { + completion: function initCompletion(dactyl, modules, window) { modules.completion.visibleHosts = function completeHosts(context) { let res = util.visibleHosts(window.content); if (context.filter && !res.some(function (host) host.indexOf(context.filter) >= 0)) @@ -578,7 +578,7 @@ var Sanitizer = Module("sanitizer", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakRef context.completions = res; }; }, - options: function (dactyl, modules) { + options: function initOptions(dactyl, modules) { const options = modules.options; if (services.has("privateBrowsing")) options.add(["private", "pornmode"], diff --git a/common/modules/styles.jsm b/common/modules/styles.jsm index 11c2a415..1fa7df37 100644 --- a/common/modules/styles.jsm +++ b/common/modules/styles.jsm @@ -547,7 +547,7 @@ var Styles = Module("Styles", { return '"' + str.replace(/([\\"])/g, "\\$1").replace(/\n/g, "\\00000a") + '"'; }, }, { - commands: function (dactyl, modules, window) { + commands: function initCommands(dactyl, modules, window) { const { commands, contexts, styles } = modules; function sheets(context, args, filter) { @@ -696,7 +696,7 @@ var Styles = Module("Styles", { }); }); }, - contexts: function (dactyl, modules, window) { + contexts: function initContexts(dactyl, modules, window) { modules.contexts.Hives("styles", Class("LocalHive", Contexts.Hive, { init: function init(group) { @@ -717,7 +717,7 @@ var Styles = Module("Styles", { } })); }, - completion: function (dactyl, modules, window) { + completion: function initCompletion(dactyl, modules, window) { const names = Array.slice(DOM(<div/>, window.document).style); modules.completion.css = function (context) { context.title = ["CSS Property"]; @@ -732,7 +732,7 @@ var Styles = Module("Styles", { } }; }, - javascript: function (dactyl, modules, window) { + javascript: function initJavascript(dactyl, modules, window) { modules.JavaScript.setCompleter(["get", "add", "remove", "find"].map(function (m) Hive.prototype[m]), [ // Prototype: (name, filter, css, index) function (context, obj, args) this.names, @@ -741,7 +741,7 @@ var Styles = Module("Styles", { function (context, obj, args) this.sheets ]); }, - template: function () { + template: function initTemplate() { let patterns = Styles.patterns; template.highlightCSS = function highlightCSS(css) { @@ -769,7 +769,7 @@ var Styles = Module("Styles", { }{ match.postSpace }</> }) } - }, + } }); endModule(); |