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