TabPinned/TabUnpinnedイベントを使うようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@7240 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
89a072b7b7
commit
2ef43fcb8e
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user