mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-04 10:15:45 +01:00
Fix :stopall and <tab> autocommands keyword.
This commit is contained in:
@@ -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();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user