Dispose of WorkspaceElement subscriptions when detached

Signed-off-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2014-11-11 12:35:01 -07:00
parent c75e692269
commit 9fd52f600e

View File

@ -23,6 +23,7 @@ class WorkspaceElement extends HTMLElement
@focus()
detachedCallback: ->
@subscriptions.dispose()
@model.destroy()
initializeGlobalTextEditorStyleSheet: ->