1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-04 05:45:46 +01:00

Fix :stopall and <tab> autocommands keyword.

This commit is contained in:
Doug Kearns
2015-03-06 22:36:26 +11:00
parent 06f63847e0
commit a67825d450

View File

@@ -214,7 +214,7 @@ var Tabs = Module("tabs", {
*/ */
// FIXME: Only called once...necessary? // FIXME: Only called once...necessary?
getContentIndex: function getContentIndex(content) { getContentIndex: function getContentIndex(content) {
for (let browser of this.browsers) { for (let [i, browser] of this.browsers) {
if (browser.contentWindow == content || browser.contentDocument == content) if (browser.contentWindow == content || browser.contentDocument == content)
return i; return i;
} }
@@ -510,7 +510,7 @@ var Tabs = Module("tabs", {
* Stops loading all tabs. * Stops loading all tabs.
*/ */
stopAll: function stopAll() { stopAll: function stopAll() {
for (let browser of this.browsers) for (let [, browser] of this.browsers)
browser.stop(); browser.stop();
}, },