this is how we write this on .com

This commit is contained in:
Justin Palmer
2013-02-11 12:58:03 -08:00
parent 6a504fc290
commit b9101b3310

View File

@@ -82,7 +82,7 @@ class TabView extends SortableList
currentDraggedTabIndex = draggedTab.index()
toEditor.editSessions.splice(currentDraggedTabIndex, 0, fromEditor.editSessions.splice(previousDraggedTabIndex, 1)[0])
if fromPane.find('.tab').length == 0
if !fromPane.find('.tab').length
fromPane.view().remove()
else if fromPaneIndex != toPaneIndex && draggedTab.hasClass('active')
fromEditor.setActiveEditSessionIndex(0)