1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-27 11:05:47 +01:00

Rename 'array' class 'Ary'.

This commit is contained in:
Kris Maglione
2015-03-04 17:27:32 -08:00
parent 313fa1c333
commit d6543c6510
36 changed files with 239 additions and 232 deletions

View File

@@ -346,8 +346,8 @@ var AddonList = Class("AddonList", {
var Addons = Module("addons", {
errors: Class.Memoize(() =>
array(["ERROR_NETWORK_FAILURE", "ERROR_INCORRECT_HASH",
"ERROR_CORRUPT_FILE", "ERROR_FILE_ACCESS"])
Ary(["ERROR_NETWORK_FAILURE", "ERROR_INCORRECT_HASH",
"ERROR_CORRUPT_FILE", "ERROR_FILE_ACCESS"])
.map(e => [AddonManager[e], _("AddonManager." + e)])
.toObject())
}, {
@@ -466,8 +466,8 @@ var Addons = Module("addons", {
context.incomplete = true;
AddonManager.getAllAddons(function (addons) {
context.incomplete = false;
update(array.uniq(base.concat(addons.map(a => a.type)),
true));
update(Ary.uniq(base.concat(addons.map(a => a.type)),
true));
});
}
};