マルチプルタブハンドラが無い環境でコンテキストメニューの追加項目が表示されなくなっていたのを修正

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4434 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-05-14 12:46:12 +00:00
parent 819775a1c4
commit dadc784d86

View File

@ -517,8 +517,8 @@ TreeStyleTabBrowser.prototype = {
tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu');
tabContextMenu.addEventListener('popupshowing', this, false);
if (!('MultipleTabService' in window)) {
window.setTimeout(function(aSelf) {
let suffix = '-tabbrowser-'+(b.id || 'instance-'+parseInt(Math.random() * 65000));
window.setTimeout(function(aSelf, aTabBrowser) {
let suffix = '-tabbrowser-'+(aTabBrowser.id || 'instance-'+parseInt(Math.random() * 65000));
[
aSelf.kMENUITEM_REMOVESUBTREE,
aSelf.kMENUITEM_REMOVECHILDREN,
@ -554,7 +554,7 @@ TreeStyleTabBrowser.prototype = {
tabContextMenu.insertBefore(item, refNode || null);
});
tabContextMenu = null;
}, 0, this);
}, 0, this, b);
}
}