mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 07:24:13 +01:00
Replace expression closures (function expressions - named and dynamic this).
Expression closures are to be axed. See https://bugzil.la/1083458. Leaving deprecated() and literal() calls and method shorthand syntax conversions until after the ESR overlap.
This commit is contained in:
@@ -238,7 +238,9 @@ var Addon = Class("Addon", {
|
||||
|
||||
["cancelUninstall", "findUpdates", "getResourceURI", "hasResource", "isCompatibleWith",
|
||||
"uninstall"].forEach(function (prop) {
|
||||
Addon.prototype[prop] = function proxy() apply(this.addon, prop, arguments);
|
||||
Addon.prototype[prop] = function proxy() {
|
||||
return apply(this.addon, prop, arguments);
|
||||
};
|
||||
});
|
||||
|
||||
["aboutURL", "appDisabled", "applyBackgroundUpdates", "blocklistState", "contributors", "creator",
|
||||
|
||||
Reference in New Issue
Block a user