mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Pass subscriptions through to the async layer.
This commit is contained in:
@@ -136,7 +136,7 @@ class GitRepository
|
||||
#
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
|
||||
onDidDestroy: (callback) ->
|
||||
@emitter.on 'did-destroy', callback
|
||||
@async.onDidDestroy callback
|
||||
|
||||
###
|
||||
Section: Event Subscription
|
||||
@@ -154,7 +154,7 @@ class GitRepository
|
||||
#
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
|
||||
onDidChangeStatus: (callback) ->
|
||||
@emitter.on 'did-change-status', callback
|
||||
@async.onDidChangeStatus callback
|
||||
|
||||
# Public: Invoke the given callback when a multiple files' statuses have
|
||||
# changed. For example, on window focus, the status of all the paths in the
|
||||
@@ -165,7 +165,7 @@ class GitRepository
|
||||
#
|
||||
# Returns a {Disposable} on which `.dispose()` can be called to unsubscribe.
|
||||
onDidChangeStatuses: (callback) ->
|
||||
@emitter.on 'did-change-statuses', callback
|
||||
@async.onDidChangeStatuses callback
|
||||
|
||||
###
|
||||
Section: Repository Details
|
||||
|
||||
Reference in New Issue
Block a user