mirror of
https://github.com/atom/atom.git
synced 2026-02-07 05:05:02 -05:00
pass event to shouldAllow* methods
This commit is contained in:
@@ -45,7 +45,7 @@ class TabView extends SortableList
|
||||
removeTabAtIndex: (index) ->
|
||||
@find(".tab:eq(#{index})").remove()
|
||||
|
||||
shouldAllowDrag: ->
|
||||
shouldAllowDrag: (event) ->
|
||||
panes = rootView.find('.pane')
|
||||
!(panes.length == 1 && panes.find('.sortable').length == 1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user