mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-24 12:55:46 +01:00
Replace expression closures (getters).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -70,7 +70,9 @@ var AutoCmdHive = Class("AutoCmdHive", Contexts.Hive, {
|
||||
* @instance autocommands
|
||||
*/
|
||||
var AutoCommands = Module("autocommands", {
|
||||
get activeHives() contexts.allGroups.autocmd.filter(h => h._store.length),
|
||||
get activeHives() {
|
||||
return contexts.allGroups.autocmd.filter(h => h._store.length);
|
||||
},
|
||||
|
||||
add: deprecated("group.autocmd.add", { get: function add() autocommands.user.bound.add }),
|
||||
get: deprecated("group.autocmd.get", { get: function get() autocommands.user.bound.get }),
|
||||
|
||||
Reference in New Issue
Block a user