mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-08 06:44:17 +01:00
Replace expression closures (function declarations).
Expression closures are to be axed. See https://bugzil.la/1083458.
This commit is contained in:
@@ -499,12 +499,14 @@ var Contexts = Module("contexts", {
|
||||
bindMacro: function (args, default_, params) {
|
||||
const { dactyl, events, modules } = this.modules;
|
||||
|
||||
function Proxy(obj, key) Class.Property({
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
get: function Proxy_get() process(obj[key]),
|
||||
set: function Proxy_set(val) obj[key] = val
|
||||
})
|
||||
function Proxy(obj, key) {
|
||||
return Class.Property({
|
||||
configurable: true,
|
||||
enumerable: true,
|
||||
get: function Proxy_get() process(obj[key]),
|
||||
set: function Proxy_set(val) obj[key] = val
|
||||
});
|
||||
}
|
||||
|
||||
let process = util.identity;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user