1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-06 13:45:47 +01:00

Convert expression closures to arrow syntax.

This commit is contained in:
Doug Kearns
2013-09-15 00:42:51 +10:00
parent 6eeb0f50a2
commit 6ee830dfad
53 changed files with 702 additions and 703 deletions

4
common/bootstrap.js vendored
View File

@@ -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 {