1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 06:07:59 +01:00

Fix zero-argument :qmarks form. Closes issue #26.

This commit is contained in:
Kris Maglione
2010-09-27 11:35:01 -04:00
parent 3d5f29fa59
commit e539e0b7ed
5 changed files with 25 additions and 20 deletions

View File

@@ -18,8 +18,8 @@ const CommandWidgets = Class("CommandWidgets", {
});
this.addElem({
name: "commandline",
getValue: function () this.command,
getGroup: function () options.get("guioptions").has("C") ? this.commandbar : this.statusbar,
getValue: function () this.command,
noValue: true,
});
this.addElem({
@@ -129,7 +129,7 @@ const CommandWidgets = Class("CommandWidgets", {
for (let group in values([this.commandbar, this.statusbar])) {
let meth, node = group[elem.name];
let visible = (value && group === activeGroup);
if (!node.collapsed == !visible) {
if (node && !node.collapsed == !visible) {
node.collapsed = !visible;
if (elem.onVisibility)
elem.onVisibility.call(this, node, visible);