1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-13 12:55:47 +01:00

Collapse bloody focus region selection after following a hint.

This commit is contained in:
Kris Maglione
2011-03-23 14:16:18 -04:00
parent 5f4bf0537a
commit 46e8d43429
5 changed files with 8 additions and 9 deletions

View File

@@ -124,7 +124,7 @@ var Contexts = Module("contexts", {
util.trapErrors("destroy", hive);
for (let [name, plugin] in iter(this.modules.plugins.contexts))
if (plugin && "onUnload" in plugin)
if (plugin && "onUnload" in plugin && callable(plugin.onUnload))
util.trapErrors("onUnload", plugin);
},

View File

@@ -1139,8 +1139,8 @@ var Options = Module("options", {
context.pushProcessor(0, function (item, text, next) next(item, text.substr(0, 100)));
context.completions = [
[prefs.get(filter), _("opt.currentValue")],
[prefs.defaults.get(filter), _("opt.defaultValue")]
[prefs.get(filter), _("option.currentValue")],
[prefs.defaults.get(filter), _("option.defaultValue")]
].filter(function (k) k[0] != null);
return null;
}