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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user