mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Add GitRepository.prototype.isDestroyed
This commit is contained in:
@@ -130,6 +130,10 @@ class GitRepository
|
||||
@async.destroy()
|
||||
@async = null
|
||||
|
||||
# Public: Returns a {Boolean} indicating if this repository has been destroyed.
|
||||
isDestroyed: ->
|
||||
not @repo?
|
||||
|
||||
# Public: Invoke the given callback when this GitRepository's destroy() method
|
||||
# is invoked.
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user