1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 10:14:13 +01:00

Replace expression closures (getters).

Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
Doug Kearns
2015-05-27 04:42:30 +10:00
parent ce82387cdd
commit 6e8040286a
48 changed files with 808 additions and 532 deletions

View File

@@ -30,7 +30,7 @@ var Binding = Class("Binding", {
else
this.removeAttribute("collapsed");
},
get collapsed() !!this.getAttribute("collapsed"),
get collapsed() { return !!this.getAttribute("collapsed"); },
__noSuchMethod__: Class.Property({
configurable: true,
@@ -103,7 +103,10 @@ var Template = Module("Template", {
this.target = params.commandTarget;
},
get command() this.getAttribute("command") || this.getAttribute("key"),
get command() {
return this.getAttribute("command") ||
this.getAttribute("key");
},
events: {
"click": function onClick(event) {