Reserved slot index of rangeエラーが起きないように、letで宣言した変数をクロージャ内外で共有しないようにした
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4436 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
cb130b39f1
commit
54481e5f6b
@ -517,7 +517,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu');
|
tabContextMenu = document.getAnonymousElementByAttribute(b, 'anonid', 'tabContextMenu');
|
||||||
tabContextMenu.addEventListener('popupshowing', this, false);
|
tabContextMenu.addEventListener('popupshowing', this, false);
|
||||||
if (!('MultipleTabService' in window)) {
|
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));
|
let suffix = '-tabbrowser-'+(aTabBrowser.id || 'instance-'+parseInt(Math.random() * 65000));
|
||||||
[
|
[
|
||||||
aSelf.kMENUITEM_REMOVESUBTREE,
|
aSelf.kMENUITEM_REMOVESUBTREE,
|
||||||
@ -551,11 +551,11 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
catch(e) {
|
catch(e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tabContextMenu.insertBefore(item, refNode || null);
|
aPopup.insertBefore(item, refNode || null);
|
||||||
});
|
});
|
||||||
tabContextMenu = null;
|
}, 0, this, b, tabContextMenu);
|
||||||
}, 0, this, b);
|
|
||||||
}
|
}
|
||||||
|
tabContextMenu = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
let (allTabPopup) {
|
let (allTabPopup) {
|
||||||
@ -1873,8 +1873,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
onMouseUp : function(aEvent)
|
onMouseUp : function(aEvent)
|
||||||
{
|
{
|
||||||
if (aEvent.originalTarget &&
|
if (aEvent.originalTarget &&
|
||||||
aEvent.originalTarget.getAttribute('class') == this.kSPLITTER ||
|
this.evaluateXPath('ancestor::*[@class="'+this.kSPLITTER+'"]', aEvent.originalTarget, XPathResult.BOOLEAN_TYPE).booleanValue) {
|
||||||
aEvent.originalTarget.parentNode.getAttribute('class') == this.kSPLITTER) {
|
|
||||||
this.tabbarResizing = false;
|
this.tabbarResizing = false;
|
||||||
this.mTabBrowser.removeAttribute(this.kRESIZING);
|
this.mTabBrowser.removeAttribute(this.kRESIZING);
|
||||||
if (this.autoHideShown) this.redrawContentArea();
|
if (this.autoHideShown) this.redrawContentArea();
|
||||||
|
Loading…
Reference in New Issue
Block a user