dispose changePathDisposable on destroy

This commit is contained in:
Tony Brix 2017-09-19 14:11:33 -05:00
parent 8b67b7037c
commit 90503f6d4a

View File

@ -79,7 +79,7 @@ class PaneElement extends HTMLElement
activeItemChanged: (item) ->
delete @dataset.activeItemName
delete @dataset.activeItemPath
@changePathDisposable?.dispose?()
@changePathDisposable?.dispose()
return unless item?
@ -126,6 +126,7 @@ class PaneElement extends HTMLElement
paneDestroyed: ->
@subscriptions.dispose()
@changePathDisposable?.dispose()
flexScaleChanged: (flexScale) ->
@style.flexGrow = flexScale