mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Tear down timers when destroying TextEditorPresenter
This commit is contained in:
@@ -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) ->
|
||||
|
||||
Reference in New Issue
Block a user