Subscribe to collapse event in PathView

This commit is contained in:
Kevin Sawicki
2013-02-13 18:49:39 -08:00
parent 5b1acb5188
commit 7c4c44df5a

View File

@@ -17,7 +17,7 @@ class PathView extends View
initialize: ->
@on 'mousedown', @onPathSelected
rootView.command 'command-panel:collapse-result', (e) =>
@subscribe rootView, 'command-panel:collapse-result', =>
@collapse(true) if @find('.selected').length
onPathSelected: (event) =>