1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-04 19:14:12 +01:00

Replace expression closures (methods).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-07-23 01:55:32 +10:00
parent c035aa936b
commit 77d59cdfd1
45 changed files with 1595 additions and 1045 deletions

View File

@@ -26,7 +26,9 @@ var AutoCmdHive = Class("AutoCmdHive", Contexts.Hive, {
this._store = [];
},
"@@iterator": function () this._store[Symbol.iterator](),
"@@iterator": function () {
return this._store[Symbol.iterator]();
},
/**
* Adds a new autocommand. *cmd* will be executed when one of the specified
@@ -171,7 +173,9 @@ var AutoCommands = Module("autocommands", {
hives: contexts.Hives("autocmd", AutoCmdHive),
user: contexts.hives.autocmd.user,
allHives: contexts.allGroups.autocmd,
matchingHives: function matchingHives(uri, doc) contexts.matchingGroups(uri, doc).autocmd
matchingHives: function matchingHives(uri, doc) {
return contexts.matchingGroups(uri, doc).autocmd;
}
});
},
commands: function initCommands() {