mirror of
https://github.com/atom/atom.git
synced 2026-02-14 08:35:11 -05:00
Make tab drag & drop work with new panes system
This commit is contained in:
committed by
probablycorey
parent
9655fa8898
commit
0238061fa2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user