1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:18:00 +01:00

Speed up JS completion more.

This commit is contained in:
Kris Maglione
2008-10-15 22:06:45 +00:00
parent 9d8198c0ff
commit 0a94b9fe71
2 changed files with 11 additions and 2 deletions

View File

@@ -1281,6 +1281,13 @@ function ItemList(id) //{{{
// TODO: temporary, to be changed/removed
function createRow([b, c, a], dom)
{
/* Kludge until we have completion contexts. */
let map = completion.filterMap;
if (map)
{
b = map[0] ? map[0](b) : b;
c = map[1] ? map[1](c) : c;
}
/* Obviously, ItemList shouldn't know or care about this. */
let filter = completion.filterString;
if (filter)