Make tab drag & drop work with new panes system

This commit is contained in:
Nathan Sobo
2013-02-26 19:07:19 -07:00
committed by probablycorey
parent 9655fa8898
commit 0238061fa2
3 changed files with 111 additions and 89 deletions

View File

@@ -114,6 +114,10 @@ class Pane extends View
@items.splice(newIndex, 0, item)
@trigger 'pane:item-moved', [item, newIndex]
moveItemToPane: (item, pane, index) ->
@removeItem(item)
pane.addItem(item, index)
itemForPath: (path) ->
_.detect @items, (item) -> item.getPath?() is path