洗濯された最初のタブがあった位置に新しいツリーを移動するように

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4793 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2009-07-23 16:49:54 +00:00
parent 8001d00384
commit 327933ecb7

View File

@ -2274,12 +2274,22 @@ catch(e) {
var parent = this.getParentTab(aTabs[0]);
var prev = aTabs[0];
while (
(prev = this.getNextSiblingTab(prev)) &&
aTabs.indexOf(prev) > -1
);
window.setTimeout(function(aSelf) {
aTabs.forEach(function(aTab) {
b.treeStyleTab.attachTabTo(aTab, root);
b.treeStyleTab.collapseExpandTab(aTab, false);
}, aSelf);
if (parent) b.treeStyleTab.attachTabTo(root, parent);
if (parent) {
b.treeStyleTab.attachTabTo(root, parent, {
insertBefore : prev
});
}
}, 0, this);
},
canCreateSubTree : function(aTabs)