summaryrefslogtreecommitdiff
path: root/common/modules/sanitizer.jsm
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2012-10-11 01:08:36 +1100
committerDoug Kearns <dougkearns@gmail.com>2012-10-11 01:08:36 +1100
commit53f3ea342cc3ec47357c0836e89c127742762453 (patch)
tree6f5bd10d1c6a7641f6709a5f3bfcd4cf84b07730 /common/modules/sanitizer.jsm
parent50597cc80a48f4a192f44723039e11348b4a6c84 (diff)
downloadpentadactyl-53f3ea342cc3ec47357c0836e89c127742762453.tar.gz
Normalise naming of module initializer functions.
Diffstat (limited to 'common/modules/sanitizer.jsm')
-rw-r--r--common/modules/sanitizer.jsm10
1 files changed, 5 insertions, 5 deletions
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"],