1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 05:54:12 +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

View File

@@ -149,9 +149,9 @@ var Modules = function Modules(window) {
get ownPropertyValues() array.compact(
Object.getOwnPropertyNames(this)
.map(function (name) Object.getOwnPropertyDescriptor(this, name).value, this)),
.map(name => Object.getOwnPropertyDescriptor(this, name).value)),
get moduleList() this.ownPropertyValues.filter(function (mod) mod instanceof this.ModuleBase || mod.isLocalModule, this)
get moduleList() this.ownPropertyValues.filter(mod => mod instanceof this.ModuleBase || mod.isLocalModule)
});
modules.plugins = create(modules);
@@ -179,7 +179,7 @@ overlay.overlayWindow(Object.keys(config.overlays), function _overlay(window) ({
});
config.modules.window
.forEach(function (name) defineModule.time("load", name, modules.load, modules, name));
.forEach(name => defineModule.time("load", name, modules.load, modules, name));
}, this);
},
@@ -224,7 +224,7 @@ overlay.overlayWindow(Object.keys(config.overlays), function _overlay(window) ({
},
cleanup: function cleanup(window) {
overlay.windows = overlay.windows.filter(function (w) w != window);
overlay.windows = overlay.windows.filter(w => w != window);
},
unload: function unload(window) {