Don't raise error while dragging of non-tab objects over the tab bar

This commit is contained in:
YUKI Hiroshi 2012-12-21 13:55:32 +09:00
parent 175286eba2
commit 4797ddfb6b

View File

@ -267,7 +267,7 @@ catch(e) {
}; };
let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0); let draggedTab = aEvent.dataTransfer && aEvent.dataTransfer.mozGetDataAt(TAB_DROP_TYPE, 0);
if (draggedTab._dragData) { if (draggedTab && draggedTab._dragData) {
let sameTypeUndraggedTabs = tabs.filter(function(aTab) { let sameTypeUndraggedTabs = tabs.filter(function(aTab) {
return !aTab._dragData && aTab.pinned == draggedTab.pinned; return !aTab._dragData && aTab.pinned == draggedTab.pinned;
}); });