mirror of
https://github.com/atom/atom.git
synced 2026-02-08 05:35:04 -05:00
✅ Ensure terminate handler is invoked only once
This commit is contained in:
@@ -576,6 +576,7 @@ class TextEditor extends Model
|
||||
@emitter.on 'did-terminate-pending-state', callback
|
||||
|
||||
terminatePendingState: ->
|
||||
return if not @pending
|
||||
@pending = false
|
||||
@emitter.emit 'did-terminate-pending-state', this
|
||||
|
||||
|
||||
Reference in New Issue
Block a user