Cleanup in progress

This commit is contained in:
Devine Lu Linvega
2019-04-22 08:49:47 +09:00
parent e045a6023f
commit 64f5853156
15 changed files with 241 additions and 233 deletions

View File

@@ -18,7 +18,7 @@ function Controller () {
this.menu[mode][cat][label] = { fn: fn, accelerator: accelerator }
}
this.add_role = function (mode, cat, label) {
this.addRole = function (mode, cat, label) {
if (!this.menu[mode]) { this.menu[mode] = {} }
if (!this.menu[mode][cat]) { this.menu[mode][cat] = {} }
this.menu[mode][cat][label] = { role: label }