mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Make transactAsync private
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user