1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 09:02:27 +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

@@ -256,7 +256,7 @@ CompletionContext.prototype = {
let prefix = self.value.substring(minStart, context.offset);
return context.items.map(function makeItem(item) ({ text: prefix + item.text, item: item.item }));
});
return { start: minStart, items: util.Array.flatten(items), longestSubstring: this.longestAllSubstring };
return { start: minStart, items: Array_.flatten(items), longestSubstring: this.longestAllSubstring };
}
catch (e)
{
@@ -279,7 +279,7 @@ CompletionContext.prototype = {
lists.pop());
if (!substrings) // FIXME: How is this undefined?
return [];
return util.Array.uniq(substrings);
return Array_.uniq(substrings);
},
// Temporary
get longestAllSubstring()