Minefield 3.1b2preで動作しなくなっていたのを修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@3337 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
fe27c4687f
commit
47af624231
@ -1196,7 +1196,9 @@ catch(e) {
|
||||
funcs = 'handleLinkClick __splitbrowser__handleLinkClick __ctxextensions__handleLinkClick __treestyletab__highlander__origHandleLinkClick'.split(' ');
|
||||
for (var i in funcs)
|
||||
{
|
||||
if (funcs[i] in window && /^function handleLinkClick/.test(window[funcs[i]].toString()))
|
||||
if (!(funcs[i] in window) ||
|
||||
!/^function handleLinkClick/.test(window[funcs[i]].toString()))
|
||||
continue;
|
||||
eval('window.'+funcs[i]+' = '+
|
||||
window[funcs[i]].toSource().replace(
|
||||
/(openNewTabWith\()/g,
|
||||
@ -1241,6 +1243,7 @@ catch(e) {
|
||||
]]></>
|
||||
)
|
||||
);
|
||||
break;
|
||||
}
|
||||
|
||||
funcs = 'contentAreaClick __contentAreaClick __ctxextensions__contentAreaClick'.split(' ');
|
||||
|
@ -457,7 +457,9 @@ TreeStyleTabBrowser.prototype = {
|
||||
}, 0, this);
|
||||
|
||||
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
||||
if (allTabPopup) {
|
||||
allTabPopup.addEventListener('popupshowing', this, false);
|
||||
}
|
||||
|
||||
/* To move up content area on the tab bar, switch tab.
|
||||
If we don't do it, a gray space appears on the content area
|
||||
@ -827,7 +829,9 @@ TreeStyleTabBrowser.prototype = {
|
||||
tabContext.removeEventListener('popuphiding', this, false);
|
||||
|
||||
var allTabPopup = document.getAnonymousElementByAttribute(b.mTabContainer, 'anonid', 'alltabs-popup');
|
||||
if (allTabPopup) {
|
||||
allTabPopup.removeEventListener('popupshowing', this, false);
|
||||
}
|
||||
|
||||
if (this.tabbarCanvas) {
|
||||
this.tabbarCanvas.parentNode.removeChild(this.tabbarCanvas);
|
||||
|
Loading…
x
Reference in New Issue
Block a user