From 54481e5f6b087f98c18993fcb2defa4eb61eb695 Mon Sep 17 00:00:00 2001 From: piro Date: Thu, 14 May 2009 17:21:21 +0000 Subject: [PATCH] =?UTF-8?q?Reserved=20slot=20index=20of=20range=E3=82=A8?= =?UTF-8?q?=E3=83=A9=E3=83=BC=E3=81=8C=E8=B5=B7=E3=81=8D=E3=81=AA=E3=81=84?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=80=81let=E3=81=A7=E5=AE=A3?= =?UTF-8?q?=E8=A8=80=E3=81=97=E3=81=9F=E5=A4=89=E6=95=B0=E3=82=92=E3=82=AF?= =?UTF-8?q?=E3=83=AD=E3=83=BC=E3=82=B8=E3=83=A3=E5=86=85=E5=A4=96=E3=81=A7?= =?UTF-8?q?=E5=85=B1=E6=9C=89=E3=81=97=E3=81=AA=E3=81=84=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@4436 599a83e7-65a4-db11-8015-0010dcdd6dc2 --- content/treestyletab/treestyletabbrowser.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/content/treestyletab/treestyletabbrowser.js b/content/treestyletab/treestyletabbrowser.js index 7fe51b6c..d5393f80 100644 --- a/content/treestyletab/treestyletabbrowser.js +++ b/content/treestyletab/treestyletabbrowser.js @@ -517,7 +517,7 @@ TreeStyleTabBrowser.prototype = { tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu'); tabContextMenu.addEventListener('popupshowing', this, false); if (!('MultipleTabService' in window)) { - window.setTimeout(function(aSelf, aTabBrowser) { + window.setTimeout(function(aSelf, aTabBrowser, aPopup) { let suffix = '-tabbrowser-'+(aTabBrowser.id || 'instance-'+parseInt(Math.random() * 65000)); [ aSelf.kMENUITEM_REMOVESUBTREE, @@ -551,11 +551,11 @@ TreeStyleTabBrowser.prototype = { catch(e) { } } - tabContextMenu.insertBefore(item, refNode || null); + aPopup.insertBefore(item, refNode || null); }); - tabContextMenu = null; - }, 0, this, b); + }, 0, this, b, tabContextMenu); } + tabContextMenu = null; } let (allTabPopup) { @@ -1873,8 +1873,7 @@ TreeStyleTabBrowser.prototype = { onMouseUp : function(aEvent) { if (aEvent.originalTarget && - aEvent.originalTarget.getAttribute('class') == this.kSPLITTER || - aEvent.originalTarget.parentNode.getAttribute('class') == this.kSPLITTER) { + this.evaluateXPath('ancestor::*[@class="'+this.kSPLITTER+'"]', aEvent.originalTarget, XPathResult.BOOLEAN_TYPE).booleanValue) { this.tabbarResizing = false; this.mTabBrowser.removeAttribute(this.kRESIZING); if (this.autoHideShown) this.redrawContentArea();