From 9fd52f600e34efaa0eef42daa14c25f3fd91d1d7 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Tue, 11 Nov 2014 12:35:01 -0700 Subject: [PATCH] Dispose of WorkspaceElement subscriptions when detached Signed-off-by: Max Brunsfeld --- src/workspace-element.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/workspace-element.coffee b/src/workspace-element.coffee index 3994ccfe9..02c5ce367 100644 --- a/src/workspace-element.coffee +++ b/src/workspace-element.coffee @@ -23,6 +23,7 @@ class WorkspaceElement extends HTMLElement @focus() detachedCallback: -> + @subscriptions.dispose() @model.destroy() initializeGlobalTextEditorStyleSheet: ->