git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@6466 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
9622062a7d
commit
236a26907f
@ -546,8 +546,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.invertTabContents');
|
||||
this.onPrefChange('extensions.treestyletab.tabbar.invertClosebox');
|
||||
|
||||
var tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu') ||
|
||||
document.getAnonymousElementByAttribute(b.tabContainer, 'anonid', 'tabContextMenu');
|
||||
var tabContextMenu = b.tabContextMenu ||
|
||||
document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu');
|
||||
tabContextMenu.addEventListener('popupshowing', this, false);
|
||||
if (!('MultipleTabService' in window)) {
|
||||
window.setTimeout(function(aSelf, aTabBrowser, aPopup) {
|
||||
@ -1293,8 +1293,8 @@ TreeStyleTabBrowser.prototype = {
|
||||
this.scrollBox.removeEventListener('overflow', this, true);
|
||||
this.scrollBox.removeEventListener('underflow', this, true);
|
||||
|
||||
var tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu') ||
|
||||
document.getAnonymousElementByAttribute(b.tabContainer, 'anonid', 'tabContextMenu');
|
||||
var tabContextMenu = b.tabContextMenu ||
|
||||
document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu');
|
||||
tabContextMenu.removeEventListener('popupshowing', this, false);
|
||||
|
||||
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
||||
|
@ -662,7 +662,10 @@ var TreeStyleTabUtils = {
|
||||
|
||||
getTabStrip : function TSTUtils_getTabStrip(aTabBrowser)
|
||||
{
|
||||
return aTabBrowser.mStrip || aTabBrowser.tabContainer.parentNode;
|
||||
var strip = aTabBrowser.mStrip;
|
||||
return (strip && strip.localName == 'hbox') ?
|
||||
strip :
|
||||
aTabBrowser.tabContainer.parentNode;
|
||||
},
|
||||
get tabStrip()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user