mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Listen for destroyed events on deserialized buffers
This commit is contained in:
@@ -33,6 +33,9 @@ class Project extends telepath.Model
|
||||
|
||||
# Private: Called by telepath.
|
||||
attached: ->
|
||||
for buffer in @buffers.getValues()
|
||||
buffer.once 'destroyed', => @removeBuffer(buffer)
|
||||
|
||||
@openers = []
|
||||
@editSessions = []
|
||||
@setPath(@path)
|
||||
|
||||
Reference in New Issue
Block a user