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

Move util.Array to modules.Array_.

This commit is contained in:
Doug Kearns
2009-09-13 03:35:48 +10:00
parent a2a2f17e62
commit 7c66dc2b17
17 changed files with 68 additions and 69 deletions

View File

@@ -328,7 +328,7 @@ function Bookmarks() //{{{
args.completeFilter = have.pop();
let prefix = filter.substr(0, filter.length - args.completeFilter.length);
let tags = util.Array.uniq(util.Array.flatten([b.tags for ([k, b] in Iterator(cache.bookmarks))]));
let tags = Array_([b.tags for ([k, b] in Iterator(cache.bookmarks))]).flatten().uniq();
return [[prefix + tag, tag] for ([i, tag] in Iterator(tags)) if (have.indexOf(tag) < 0)];
}
@@ -1023,7 +1023,7 @@ function History() //{{{
let sh = window.getWebNavigation().sessionHistory;
let obj = [];
obj.index = sh.index;
obj.__iterator__ = function () util.Array.iteritems(this);
obj.__iterator__ = function () Array_.iteritems(this);
for (let i in util.range(0, sh.count))
{
obj[i] = { index: i, __proto__: sh.getEntryAtIndex(i, false) };
@@ -1044,7 +1044,7 @@ function History() //{{{
liberator.beep();
else
{
let index = util.Math.constrain(current + steps, start, end);
let index = Math_.constrain(current + steps, start, end);
window.getWebNavigation().gotoIndex(index);
}
},