From e15a350accf090cc8db88068ff99e10c68344699 Mon Sep 17 00:00:00 2001 From: IIUJ-KrzysztofDawidowicz Date: Tue, 3 Dec 2013 12:35:11 +0100 Subject: [PATCH] Added tabviewhidden event listener --- TabGroupBar/chrome/content/tabgroupbar.js | 16 ++++++++++++---- TabGroupBar/chrome/content/tabgroupbar.xul | 3 ++- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/TabGroupBar/chrome/content/tabgroupbar.js b/TabGroupBar/chrome/content/tabgroupbar.js index 283885a..3622dea 100644 --- a/TabGroupBar/chrome/content/tabgroupbar.js +++ b/TabGroupBar/chrome/content/tabgroupbar.js @@ -27,9 +27,9 @@ objTabGroupBar.addGlobalEventListeners = function(){ tabContainer.addEventListener("TabSelect", reloadOnEvent); window.addEventListener("tabviewframeinitialized", reloadOnEvent); window.addEventListener("SSTabRestored", reloadOnEvent); - // tabContainer.addEventListener("TabSelect") + window.addEventListener("tabviewhidden", reloadOnEvent); }; -objTabGroupBar.reloadGroupTabs = function(){ +objTabGroupBar.reloadGroupTabs = function(event){ this.clearGroupTabs(); this.addGroupTabs(); }; @@ -64,6 +64,7 @@ objTabGroupBar.addGroupTabs = function(){ for (i= 0; i