From bd0e8b39e5773dfe712201adec5237ebc3be5e8a Mon Sep 17 00:00:00 2001 From: Piro / SHIMODA Hiroshi Date: Thu, 20 Jan 2011 01:31:22 +0900 Subject: [PATCH] remove needless codes --- modules/tabbarDNDObserver.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index b277bd6d..14c7c57e 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -196,8 +196,7 @@ catch(e) { !isCopy && sv.getTabBrowserFromChild(tab) != b && ( - ('duplicateTab' in b) || - ('swapBrowsersAndCloseOther' in b) + ('duplicateTab' in b) ) ) { info.action |= sv.kACTION_IMPORT; @@ -446,8 +445,7 @@ catch(e) { // Firefox fails to "move" collapsed tabs. So, expand them first // and collapse them after they are moved. var collapseExpandState = []; - if (aInfo.action & sv.kACTION_IMPORT && - 'swapBrowsersAndCloseOther' in targetBrowser) { + if (aInfo.action & sv.kACTION_IMPORT) { draggedWholeTree.forEach(function(aTab) { collapseExpandState.push(sv.getTabValue(aTab, sv.kSUBTREE_COLLAPSED) == 'true'); sv.collapseExpandSubtree(aTab, false, true); @@ -462,8 +460,7 @@ catch(e) { var parent = parentTabsArray[aIndex]; if (tabsInfo.isMultipleMove && 'MultipleTabService' in sourceWindow) sourceWindow.MultipleTabService.setSelection(aTab, false); - if (aInfo.action & sv.kACTION_IMPORT && - 'swapBrowsersAndCloseOther' in targetBrowser) { + if (aInfo.action & sv.kACTION_IMPORT) { tab = targetBrowser.addTab(); tab.linkedBrowser.stop(); tab.linkedBrowser.docShell;