mirror of
https://github.com/atom/atom.git
synced 2026-01-23 22:08:08 -05:00
Remove directory watch when directory view is removed
This commit is contained in:
@@ -85,6 +85,7 @@ class DirectoryView extends View
|
||||
initialize: ({@directory, isExpanded}) ->
|
||||
@expand() if isExpanded
|
||||
@disclosureArrow.on 'click', => @toggleExpansion()
|
||||
@on 'DOMNodeRemoved', (e) => @unwatchEntries() if e.target == this[0]
|
||||
|
||||
buildEntries: ->
|
||||
@entries?.remove()
|
||||
|
||||
Reference in New Issue
Block a user