From 25bd92ce80bc598dac09bc28370147d1a86e9355 Mon Sep 17 00:00:00 2001 From: piro Date: Fri, 17 Sep 2010 16:10:59 +0000 Subject: [PATCH] don't listen DOMAttrModified if there is no Tab Utilities. git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7257 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index e56d1f02..52c1aa7f 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -285,7 +285,7 @@ TreeStyleTabBrowser.prototype = { b.mTabContainer.addEventListener('SSTabRestored', this, true); b.mTabContainer.addEventListener('TabPinned', this, true); b.mTabContainer.addEventListener('TabUnpinned', this, true); - if (!this.isFloating) + if (!this.isFloating && 'tabutils' in window) b.mTabContainer.addEventListener('DOMAttrModified', this, true); // Tab Utilities b.mTabContainer.addEventListener('mouseover', this, true); b.mTabContainer.addEventListener('mouseout', this, true); @@ -1587,7 +1587,7 @@ TreeStyleTabBrowser.prototype = { b.mTabContainer.removeEventListener('SSTabRestored', this, true); b.mTabContainer.removeEventListener('TabPinned', this, true); b.mTabContainer.removeEventListener('TabUnpinned', this, true); - if (!this.isFloating) + if (!this.isFloating && 'tabutils' in window) b.mTabContainer.removeEventListener('DOMAttrModified', this, true); // Tab Utilites b.mTabContainer.removeEventListener('mouseover', this, true); b.mTabContainer.removeEventListener('mouseout', this, true);