pass event to shouldAllow* methods

This commit is contained in:
Justin Palmer
2013-02-11 08:17:32 -08:00
parent ffbc0ab45c
commit ae841c2bf7
2 changed files with 5 additions and 5 deletions

View File

@@ -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)