1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 13:02:26 +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

@@ -1028,8 +1028,8 @@ Class.prototype = {
*/
init: function c_init() {},
get instance() ({}),
set instance(val) Class.replaceProperty(this, "instance", val),
get instance() { return {}; },
set instance(val) { Class.replaceProperty(this, "instance", val); },
withSavedValues: function withSavedValues(names, callback, self) {
let vals = names.map(name => this[name]);
@@ -1173,7 +1173,7 @@ var closureHooks = {
return {
configurable: false,
writable: false,
get value() self.get(target, prop)
get value() { return self.get(target, prop); }
}
}
*/
@@ -1365,7 +1365,7 @@ var StructBase = Class("StructBase", Array, {
this[i] = arguments[i];
},
get toStringParams() this,
get toStringParams() { return this; },
clone: function struct_clone() this.constructor.apply(null, this.slice()),