1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-16 07:33:32 +01:00

Make .closure a Proxy and rename .bound

This commit is contained in:
Kris Maglione
2014-03-16 14:32:04 -07:00
parent 03596bd75d
commit af88d531d0
27 changed files with 113 additions and 119 deletions

View File

@@ -261,11 +261,11 @@ var AddonList = Class("AddonList", {
this.addons = {};
this.ready = false;
AddonManager.getAddonsByTypes(types, this.closure(function (addons) {
AddonManager.getAddonsByTypes(types, addons => {
this._addons = addons;
if (this.document)
this._init();
}));
});
AddonManager.addAddonListener(this);
},
cleanup: function cleanup() {
@@ -273,7 +273,7 @@ var AddonList = Class("AddonList", {
},
_init: function _init() {
this._addons.forEach(this.closure.addAddon);
this._addons.forEach(this.bound.addAddon);
this.ready = true;
this.update();
},