From 9262965aa914159b5963808d517ed7c721fc2bb0 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 14 Feb 2012 14:13:33 -0500 Subject: [PATCH] Closes issue #782. --- common/content/commandline.js | 8 ++++++-- common/modules/dom.jsm | 15 +++++++++------ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 2e33e3ff..6d9bc910 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -1491,8 +1491,12 @@ var CommandLine = Module("commandline", { this.wildIndex = this.wildtypes.length - 1; if (idx && idx[1] >= idx[0].items.length) { - this.waiting = idx; - statusline.progress = _("completion.waitingForResults"); + if (!idx[0].incomplete) + this.waiting = null; + else { + this.waiting = idx; + statusline.progress = _("completion.waitingForResults"); + } return; } diff --git a/common/modules/dom.jsm b/common/modules/dom.jsm index b5ce81e9..6f89d8f8 100644 --- a/common/modules/dom.jsm +++ b/common/modules/dom.jsm @@ -1567,12 +1567,15 @@ var DOM = Class("DOM", { null ); - return Object.create(result, { - __iterator__: { - value: asIterator ? function () { let elem; while ((elem = this.iterateNext())) yield elem; } - : function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); } - } - }); + let res = { + __iterator__: + asIterator ? function () { let elem; while ((elem = this.iterateNext())) yield elem; } + : function () { for (let i = 0; i < this.snapshotLength; i++) yield this.snapshotItem(i); } + }; + + for (let [k, v] in Iterator(result)) + res[k] = v; + return res; } catch (e) { throw e.stack ? e : Error(e);