1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 19:23:32 +01:00

Move Tab* event handlers to the tabs module.

This commit is contained in:
Doug Kearns
2009-11-14 04:18:01 +11:00
parent 157fa3b2e5
commit d979eb7326
3 changed files with 27 additions and 22 deletions

View File

@@ -1326,28 +1326,6 @@ const Events = Module("events", {
}
}
let tabContainer = tabs.getBrowser().mTabContainer;
tabContainer.addEventListener("TabMove", function (event) {
statusline.updateTabCount(true);
}, false);
tabContainer.addEventListener("TabOpen", function (event) {
statusline.updateTabCount(true);
}, false);
tabContainer.addEventListener("TabClose", function (event) {
statusline.updateTabCount(true);
}, false);
tabContainer.addEventListener("TabSelect", function (event) {
// TODO: is all of that necessary?
// I vote no. --Kris
modes.reset();
statusline.updateTabCount(true);
tabs.updateSelectionHistory();
if (options["focuscontent"])
setTimeout(function () { liberator.focusContent(true); }, 10); // just make sure, that no widget has focus
}, false);
tabs.getBrowser().addEventListener("DOMContentLoaded", onDOMContentLoaded, true);
// this adds an event which is is called on each page load, even if the