Make transactAsync private

This commit is contained in:
Antonio Scandurra
2015-11-11 18:30:06 +01:00
parent c67cf43ffe
commit b895baacbf

View File

@@ -677,10 +677,14 @@ class Config
finally
@endTransaction()
# Extended: Suppress calls to handler functions registered with
# {::onDidChange} and {::observe} for the duration of the {Promise} returned
# by `callback`. After the {Promise} is either resolved or rejected, handlers
# will be called once if the value for their key-path has changed.
###
Section: Internal methods used by core
###
# Private: Suppress calls to handler functions registered with {::onDidChange}
# and {::observe} for the duration of the {Promise} returned by `callback`.
# After the {Promise} is either resolved or rejected, handlers will be called
# once if the value for their key-path has changed.
#
# * `callback` {Function} that returns a {Promise}, which will be executed
# while suppressing calls to handlers.
@@ -708,10 +712,6 @@ class Config
@transactDepth--
@emitChangeEvent()
###
Section: Internal methods used by core
###
pushAtKeyPath: (keyPath, value) ->
arrayValue = @get(keyPath) ? []
result = arrayValue.push(value)