diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-09-03 09:12:13 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-09-03 09:12:13 -0400 |
commit | 91cbb9dacb5ba707260dffd0ea62df726b259577 (patch) | |
tree | 805ae2749dd81d9bffc3f00702801cde1379ccce /common/modules/messages.jsm | |
parent | 532f2a10ab46ad892fbf213be966801b562ac4c1 (diff) | |
download | pentadactyl-91cbb9dacb5ba707260dffd0ea62df726b259577.tar.gz |
Minorish changes.
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() ]); } }); |