mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 14:07:58 +01:00
Fix tab number updates in FF36. Closes issue 300.
This commit is contained in:
@@ -867,9 +867,11 @@ var Tabs = Module("tabs", {
|
||||
},
|
||||
events: function () {
|
||||
let tabContainer = config.tabbrowser.mTabContainer;
|
||||
["TabMove", "TabOpen", "TabClose"].forEach(function (event) {
|
||||
events.addSessionListener(tabContainer, event, this.closure.updateTabCount, false);
|
||||
}, this);
|
||||
function callback() {
|
||||
tabs.timeout(function () { this.updateTabCount(); });
|
||||
}
|
||||
for (let event in values(["TabMove", "TabOpen", "TabClose"]))
|
||||
events.addSessionListener(tabContainer, event, callback, false);
|
||||
events.addSessionListener(tabContainer, "TabSelect", this.closure._onTabSelect, false);
|
||||
},
|
||||
mappings: function () {
|
||||
|
||||
Reference in New Issue
Block a user