mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Change cancel to off for consistency with emissary
This commit is contained in:
@@ -84,7 +84,7 @@ describe "PaneContainer", ->
|
||||
expect(panes).toEqual [pane4]
|
||||
|
||||
panes = []
|
||||
subscription.cancel()
|
||||
subscription.off()
|
||||
pane4.splitDown()
|
||||
expect(panes).toEqual []
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user