mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-11-10 10:17:11 +03:00
dispose changePathDisposable on destroy
This commit is contained in:
parent
8b67b7037c
commit
90503f6d4a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user