Tear down timers when destroying TextEditorPresenter

This commit is contained in:
Nathan Sobo
2015-11-07 14:33:59 -07:00
parent b9528dcb39
commit fe88611e79

View File

@@ -48,6 +48,9 @@ class TextEditorPresenter
destroy: ->
@disposables.dispose()
clearTimeout(@stoppedScrollingTimeoutId) if @stoppedScrollingTimeoutId?
clearInterval(@reflowingInterval) if @reflowingInterval?
@stopBlinkingCursors()
# Calls your `callback` when some changes in the model occurred and the current state has been updated.
onDidUpdateState: (callback) ->