From a67825d450911669b7abfe665ddaed2b9d5c7423 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 6 Mar 2015 22:36:26 +1100 Subject: [PATCH] Fix :stopall and autocommands keyword. --- common/content/tabs.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/tabs.js b/common/content/tabs.js index a13479eb..e38d037e 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -214,7 +214,7 @@ var Tabs = Module("tabs", { */ // FIXME: Only called once...necessary? getContentIndex: function getContentIndex(content) { - for (let browser of this.browsers) { + for (let [i, browser] of this.browsers) { if (browser.contentWindow == content || browser.contentDocument == content) return i; } @@ -510,7 +510,7 @@ var Tabs = Module("tabs", { * Stops loading all tabs. */ stopAll: function stopAll() { - for (let browser of this.browsers) + for (let [, browser] of this.browsers) browser.stop(); },