From 7459dfc2c7db9194b6ad67f5551867b114eaaf9b Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 27 Dec 2010 09:22:20 -0500 Subject: [PATCH] [bootstrap] Fix bug in :map -silent. --HG-- branch : bootstrapped --- common/content/commandline.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index ca8479c8..322a5e7a 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -487,7 +487,7 @@ var CommandLine = Module("commandline", { set quiet(val) { this._quiet = val; ["commandbar", "statusbar"].forEach(function (nodeSet) { - Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) { + Array.forEach(this.widgets[nodeSet].commandline.children, function (node) { node.style.opacity = this._quiet || this._silent ? "0" : ""; }, this); }, this); @@ -907,11 +907,10 @@ var CommandLine = Module("commandline", { let command = this.command; if (event.type == "blur") { - // prevent losing focus, there should be a better way, but it just didn't work otherwise this.timeout(function () { if (this.commandVisible && event.originalTarget == this.widgets.active.command.inputField) dactyl.focus(this.widgets.active.command.inputField); - }, 0); + }); } else if (event.type == "focus") { if (!this.commandVisible && event.target == this.widgets.active.command.inputField) {