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

move some completion code to completion.js

This commit is contained in:
Doug Kearns
2008-10-07 15:32:48 +00:00
parent d0a7df74bc
commit 01e89bc6d8
8 changed files with 329 additions and 320 deletions

View File

@@ -331,16 +331,7 @@ liberator.config = { //{{{
},
{
argCount: "+",
completer: function (filter)
{
var menu = document.getElementById("viewSidebarMenu");
var nodes = [];
for (let i = 0; i < menu.childNodes.length; i++)
nodes.push([menu.childNodes[i].label, ""]);
return [0, liberator.completion.filter(nodes, filter)];
}
completer: function (filter) liberator.completion.sidebar(filter)
});
liberator.commands.add(["winc[lose]", "wc[lose]"],