Change cancel to off for consistency with emissary

This commit is contained in:
Kevin Sawicki 2013-11-20 19:07:56 -08:00
parent 75873ef6b3
commit de7b212d99
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ describe "PaneContainer", ->
expect(panes).toEqual [pane4]
panes = []
subscription.cancel()
subscription.off()
pane4.splitDown()
expect(panes).toEqual []

View File

@ -147,7 +147,7 @@ class PaneContainer extends View
callback(pane) for pane in @getPanes()
paneAttached = (e) -> callback($(e.target).view())
@on 'pane:attached', paneAttached
cancel: => @off 'pane:attached', paneAttached
off: => @off 'pane:attached', paneAttached
getFocusedPane: ->
@find('.pane:has(:focus)').view()