Implement shouldAllowDrag in positive logic for tabs

This commit is contained in:
Nathan Sobo
2013-02-26 19:06:28 -07:00
committed by probablycorey
parent 916c5caa3a
commit 9655fa8898

View File

@@ -86,9 +86,8 @@ class TabBarView extends SortableList
for session in editor.editSessions
return true if editSession.getPath() is session.getPath()
shouldAllowDrag: (event) ->
panes = rootView.find('.pane')
!(panes.length == 1 && panes.find('.sortable').length == 1)
shouldAllowDrag: ->
(@paneContainer.getPanes().length > 1) or (@pane.getItems().length > 1)
onDragStart: (event) =>
super