X-Git-Url: https://git.donarmstrong.com/dactyl.git?a=blobdiff_plain;f=common%2Fbootstrap.js;h=4d5dcca634a9e863b5afeebe2ab5fb48e325b6e5;hb=354a049cce8415487552ce405cce167b7071fe1f;hp=de289ee03f849a39bc0af3e2575bfd388ade2a69;hpb=3d837eb266a3a01d424192aa4ec1a167366178c5;p=dactyl.git diff --git a/common/bootstrap.js b/common/bootstrap.js index de289ee..4d5dcca 100755 --- a/common/bootstrap.js +++ b/common/bootstrap.js @@ -15,7 +15,7 @@ function module(uri) Cu.import(uri, {}); const DEBUG = true; -__defineGetter__("BOOTSTRAP", function () "resource://" + moduleName + "/bootstrap.jsm"); +__defineGetter__("BOOTSTRAP", () => "resource://" + moduleName + "/bootstrap.jsm"); var { AddonManager } = module("resource://gre/modules/AddonManager.jsm"); var { XPCOMUtils } = module("resource://gre/modules/XPCOMUtils.jsm"); @@ -125,7 +125,7 @@ let JSMLoader = { _load: function _load(name, target) { let urls = [name]; if (name.indexOf(":") === -1) - urls = this.config["module-paths"].map(function (path) path + name + ".jsm"); + urls = this.config["module-paths"].map(path => path + name + ".jsm"); for each (let url in urls) try { @@ -224,7 +224,7 @@ function init() { for each (let line in manifest.split("\n")) { let fields = line.split(/\s+/); - switch(fields[0]) { + switch (fields[0]) { case "category": categoryManager.addCategoryEntry(fields[1], fields[2], fields[3], false, true); categories.push([fields[1], fields[2]]);