typo修正+無駄な条件分岐を削除

git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@1872 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
piro 2008-02-24 09:46:17 +00:00
parent cfcd1e512d
commit 1a7b63afc9

View File

@ -1830,9 +1830,8 @@ TreeStyleTabBrowser.prototype = {
MultipleTabService.allowMoveMultipleTabs
);
if (ownerWindow != window || moveSelection) {
if (moveSelection) {
draggedTabs = moveSelection ? ownerWindow.MultipleTabService.getSelectedTabs(ownerBrowser);
draggedTabs = ownerWindow.MultipleTabService.getSelectedTabs(ownerBrowser);
if (!(aInfo.action & this.kACTION_DUPLICATE)) {
draggedRoots = [];
draggedTabs.forEach(function(aTab) {
@ -1849,10 +1848,9 @@ TreeStyleTabBrowser.prototype = {
});
}
}
else {
else if (ownerWindow != window) {
draggedTabs = draggedTabs.concat(ownerBrowser.treeStyleTab.getDescendantTabs(aDraggedTab));
}
}
if (aDraggedTab && aInfo.action & this.kACTION_PART) {
if (!(aInfo.action & this.kACTION_DUPLICATE))