diff options
Diffstat (limited to 'common/modules/messages.jsm')
-rw-r--r-- | common/modules/messages.jsm | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/common/modules/messages.jsm b/common/modules/messages.jsm index 5def642b..10bbd6a2 100644 --- a/common/modules/messages.jsm +++ b/common/modules/messages.jsm @@ -37,6 +37,10 @@ var Messages = Module("messages", { }); }, + cleanup: function cleanup() { + services.stringBundle.flushBundles(); + }, + bundles: Class.Memoize(function () array.uniq([JSMLoader.getTarget("dactyl://locale/" + this.name + ".properties"), JSMLoader.getTarget("dactyl://locale-local/" + this.name + ".properties"), @@ -53,10 +57,6 @@ var Messages = Module("messages", { yield [key, value]; }, - cleanup: function cleanup() { - services.stringBundle.flushBundles(); - }, - get: function get(value, default_) { for (let bundle in values(this.bundles)) try { @@ -136,10 +136,7 @@ var Messages = Module("messages", { }, { javascript: function initJavascript(dactyl, modules, window) { modules.JavaScript.setCompleter([this._, this.get, this.format], [ - function (context) { - context.keys = { text: "key", description: "value" }; - return messages.iterate(); - } + function (context) messages.iterate() ]); } }); |