mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Use default implementation of ::destroy from theorist Model class
Move actions that need to happen on destruction to ::destroyed hook.
This commit is contained in:
@@ -970,7 +970,7 @@ class DisplayBuffer extends Model
|
||||
for marker in @getMarkers()
|
||||
marker.notifyObservers(textChanged: false)
|
||||
|
||||
destroy: ->
|
||||
destroyed: ->
|
||||
marker.unsubscribe() for marker in @getMarkers()
|
||||
@tokenizedBuffer.destroy()
|
||||
@unsubscribe()
|
||||
|
||||
Reference in New Issue
Block a user