mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Flesh out ::destroy()
This commit is contained in:
@@ -54,7 +54,15 @@ module.exports = class GitRepositoryAsync {
|
||||
}
|
||||
|
||||
destroy () {
|
||||
this.subscriptions.dispose()
|
||||
if (this.emitter) {
|
||||
this.emitter.emit('did-destroy')
|
||||
this.emitter.dispose()
|
||||
this.emitter = null
|
||||
}
|
||||
if (this.subscriptions) {
|
||||
this.subscriptions.dispose()
|
||||
this.subscriptions = null
|
||||
}
|
||||
}
|
||||
|
||||
getPath () {
|
||||
|
||||
Reference in New Issue
Block a user