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

Add some standard JS function completers for the liberator API

This commit is contained in:
Kris Maglione
2008-11-12 23:55:34 +00:00
parent 5221fb41be
commit d7076c5aa5
6 changed files with 66 additions and 35 deletions

View File

@@ -847,6 +847,12 @@ function Options() //{{{
////////////////////// PUBLIC SECTION //////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{
// TODO: Does this belong elsewhere?
liberator.registerObserver("load_completion", function ()
{
completion.setFunctionCompleter(options.get, [function () ([o.name, o.description] for (o in options))]);
});
return {
OPTION_SCOPE_GLOBAL: 1,