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

Add function completers for services.{get,create}.

This commit is contained in:
Doug Kearns
2009-06-18 22:02:49 +10:00
parent ec8d7686fc
commit 837b17d6c1
2 changed files with 43 additions and 2 deletions

View File

@@ -595,6 +595,9 @@ const liberator = (function () //{{{
/////////////////////////////////////////////////////////////////////////////{{{
registerObserver("load_completion", function () {
completion.setFunctionCompleter(services.get, [function () services.services]);
completion.setFunctionCompleter(services.create, [function () [[c, ""] for (c in services.classes)]]);
completion.dialog = function dialog(context) {
context.title = ["Dialog"];
context.completions = config.dialogs;