Delete flags from the service object when they are expired

This commit is contained in:
YUKI Hiroshi 2016-01-19 18:04:29 +09:00
parent f4fff387b1
commit 2ede365e18
2 changed files with 9 additions and 9 deletions

View File

@ -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;
},

View File

@ -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)
) {
/*
子タブの最初の位置に挿入し続くタブは最初の開いたタブ