mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 19:27:57 +01:00
Revert "Move util.Array to modules.Array_."
This reverts commit d6cdda48a18c9fa05365b50046470fec9935fd3c. Array_ method chaining needs fixing.
This commit is contained in:
@@ -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: Array_.flatten(items), longestSubstring: this.longestAllSubstring };
|
||||
return { start: minStart, items: util.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 Array_.uniq(substrings);
|
||||
return util.Array.uniq(substrings);
|
||||
},
|
||||
// Temporary
|
||||
get longestAllSubstring()
|
||||
|
||||
Reference in New Issue
Block a user