Delete flags from the service object when they are expired
This commit is contained in:
parent
f4fff387b1
commit
2ede365e18
@ -1651,14 +1651,14 @@ var TreeStyleTabBase = inherit(TreeStyleTabConstants, {
|
||||
dump('Tree Style Tab: new child tab is canceled.\n'+
|
||||
new Error().stack.replace(/^/gm, ' ')+'\n');
|
||||
|
||||
ownerBrowser.treeStyleTab.readiedToAttachNewTab = false;
|
||||
ownerBrowser.treeStyleTab.readiedToAttachNewTabGroup = false;
|
||||
ownerBrowser.treeStyleTab.readiedToAttachMultiple = false;
|
||||
ownerBrowser.treeStyleTab.multipleCount = -1;
|
||||
ownerBrowser.treeStyleTab.parentTab = null;
|
||||
ownerBrowser.treeStyleTab.insertBefore = null;
|
||||
ownerBrowser.treeStyleTab.treeStructure = null;
|
||||
ownerBrowser.treeStyleTab.shouldExpandAllTree = false;
|
||||
delete ownerBrowser.treeStyleTab.readiedToAttachNewTab;
|
||||
delete ownerBrowser.treeStyleTab.readiedToAttachNewTabGroup;
|
||||
delete ownerBrowser.treeStyleTab.readiedToAttachMultiple;
|
||||
delete ownerBrowser.treeStyleTab.multipleCount;
|
||||
delete ownerBrowser.treeStyleTab.parentTab;
|
||||
delete ownerBrowser.treeStyleTab.insertBefore;
|
||||
delete ownerBrowser.treeStyleTab.treeStructure;
|
||||
delete ownerBrowser.treeStyleTab.shouldExpandAllTree;
|
||||
|
||||
return true;
|
||||
},
|
||||
|
@ -3202,7 +3202,7 @@ TreeStyleTabBrowser.prototype = inherit(TreeStyleTabWindow.prototype, {
|
||||
else if (
|
||||
parent &&
|
||||
utils.getTreePref('insertNewChildAt') == this.kINSERT_FISRT &&
|
||||
(this.multipleCount <= 0 || this._addedCountInThisLoop <= 0)
|
||||
(typeof this.multipleCount !== 'number' || this._addedCountInThisLoop <= 0)
|
||||
) {
|
||||
/* 複数の子タブを一気に開く場合、最初に開いたタブだけを
|
||||
子タブの最初の位置に挿入し、続くタブは「最初の開いたタブ」と
|
||||
|
Loading…
x
Reference in New Issue
Block a user