mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 00:04:11 +01:00
Minorish changes.
This commit is contained in:
@@ -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()
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user