1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 20:22:26 +01:00

Replace expression closures (function expressions).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-05-26 03:38:58 +10:00
parent 34bfc2f50f
commit ce82387cdd
35 changed files with 182 additions and 184 deletions

View File

@@ -32,7 +32,7 @@ var Tabs = Module("tabs", {
"{ visibility: collapse; }",
false, true);
dactyl.commands["tabs.select"] = function (event) {
dactyl.commands["tabs.select"] = event => {
tabs.switchTo(event.originalTarget.getAttribute("identifier"));
};
@@ -1096,7 +1096,7 @@ var Tabs = Module("tabs", {
description: function (group) group.getTitle() ||
group.getChildren().map(t => t.tab.label).join(", ")
};
context.generate = function () {
context.generate = () => {
context.incomplete = true;
tabs.getGroups(function ({ GroupItems }) {
context.incomplete = false;
@@ -1120,7 +1120,7 @@ var Tabs = Module("tabs", {
"Execute the next mapping in a new tab",
function ({ count }) {
dactyl.forceTarget = dactyl.NEW_TAB;
mappings.afterCommands((count || 1) + 1, function () {
mappings.afterCommands((count || 1) + 1, () => {
dactyl.forceTarget = null;
});
},