From 2ef43fcb8e1c2a8ff089bfb622f2fb65c4ca12e1 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 16 Sep 2010 09:01:52 +0000 Subject: [PATCH] =?UTF-8?q?TabPinned/TabUnpinned=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88=E3=82=92=E4=BD=BF=E3=81=86=E3=82=88=E3=81=86?= =?UTF-8?q?=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7240 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index b5078cb9..764799cd 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -279,7 +279,10 @@ TreeStyleTabBrowser.prototype = { b.mTabContainer.addEventListener('TabMove', this, true); b.mTabContainer.addEventListener('SSTabRestoring', this, true); b.mTabContainer.addEventListener('SSTabRestored', this, true); - b.mTabContainer.addEventListener('DOMAttrModified', this, true); + b.mTabContainer.addEventListener('TabPinned', this, true); + b.mTabContainer.addEventListener('TabUnpinned', this, true); + if (!this.isFloating) + b.mTabContainer.addEventListener('DOMAttrModified', this, true); // Tab Utilities b.mTabContainer.addEventListener('mouseover', this, true); b.mTabContainer.addEventListener('mouseout', this, true); b.mTabContainer.addEventListener('dblclick', this, true); @@ -1576,7 +1579,10 @@ TreeStyleTabBrowser.prototype = { b.mTabContainer.removeEventListener('TabMove', this, true); b.mTabContainer.removeEventListener('SSTabRestoring', this, true); b.mTabContainer.removeEventListener('SSTabRestored', this, true); - b.mTabContainer.removeEventListener('DOMAttrModified', this, true); + b.mTabContainer.removeEventListener('TabPinned', this, true); + b.mTabContainer.removeEventListener('TabUnpinned', this, true); + if (!this.isFloating) + b.mTabContainer.removeEventListener('DOMAttrModified', this, true); // Tab Utilites b.mTabContainer.removeEventListener('mouseover', this, true); b.mTabContainer.removeEventListener('mouseout', this, true); b.mTabContainer.removeEventListener('dblclick', this, true); @@ -1927,6 +1933,12 @@ TreeStyleTabBrowser.prototype = { case 'SSTabRestored': return this.onTabRestored(aEvent); + case 'TabPinned': + return this.onPinTab(aEvent.originalTarget); + + case 'TabUnpinned': + return this.onUnpinTab(aEvent.originalTarget); + case 'DOMAttrModified': return this.onDOMAttrModified(aEvent);