1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 11:47:59 +01:00

Add 'javascript' module. Misc fixes along the way.

This commit is contained in:
Kris Maglione
2009-11-15 02:08:10 -05:00
parent 9937c2965a
commit cdaa26f968
12 changed files with 646 additions and 591 deletions

View File

@@ -105,6 +105,13 @@ const Services = Module("services", {
* @param {string} name The class's cache key.
*/
create: function (name) this.classes[name]()
}, {
}, {
completion: function () {
JavaScript.setCompleter(this.get, [function () services.services]);
JavaScript.setCompleter(this.create, [function () [[c, ""] for (c in services.classes)]]);
}
});
// vim: set fdm=marker sw=4 ts=4 et: