Editor.prototype.removeActiveEditSession calls destroy on the removed edit session

This commit is contained in:
Corey Johnson
2012-06-28 13:54:07 -07:00
parent 3dd9253bc5
commit e295d19d51
2 changed files with 6 additions and 1 deletions

View File

@@ -359,6 +359,7 @@ class Editor extends View
editSession = @activeEditSession
@loadPreviousEditSession()
_.remove(@editSessions, editSession)
editSession.destroy()
loadNextEditSession: ->
nextIndex = (@getActiveEditSessionIndex() + 1) % @editSessions.length