From b38c6f80666665d1e5a8de11d327bfc49039c937 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Fri, 30 Nov 2012 03:21:56 +0900 Subject: [PATCH] Optimize to collect "not dragged" tabs --- modules/tabbarDNDObserver.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/tabbarDNDObserver.js b/modules/tabbarDNDObserver.js index 816a52d0..c86dc847 100644 --- a/modules/tabbarDNDObserver.js +++ b/modules/tabbarDNDObserver.js @@ -267,9 +267,9 @@ catch(e) { }; let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0); - let (draggedTabs = this.getDraggedTabsInfoFromOneTab(draggedTab).draggedTabs) { + if (draggedTab._dragData) { let tabs = sv.getTabs(b).filter(function(aTab) { - return draggedTabs.indexOf(aTab) < 0; + return !aTab._dragData; }); tab = sv.getTabFromCoordinate(aEvent[sv.screenPositionProp], tabs) || sv.getTabFromCoordinate(aEvent[sv.screenPositionProp]);