mirror of
https://github.com/atom/atom.git
synced 2026-01-24 22:38:20 -05:00
🎨 Call it ::beginTransaction
This commit is contained in:
@@ -671,13 +671,13 @@ class Config
|
||||
#
|
||||
# * `callback` {Function} to execute while suppressing calls to handlers.
|
||||
transact: (callback) ->
|
||||
@startTransaction()
|
||||
@beginTransaction()
|
||||
try
|
||||
callback()
|
||||
finally
|
||||
@endTransaction()
|
||||
|
||||
startTransaction: ->
|
||||
beginTransaction: ->
|
||||
@transactDepth++
|
||||
|
||||
endTransaction: ->
|
||||
|
||||
@@ -416,7 +416,7 @@ class PackageManager
|
||||
|
||||
activatePackages: (packages) ->
|
||||
promises = []
|
||||
@config.startTransaction()
|
||||
@config.beginTransaction()
|
||||
for pack in packages
|
||||
promise = @activatePackage(pack.name)
|
||||
promises.push(promise) unless pack.hasActivationCommands()
|
||||
|
||||
Reference in New Issue
Block a user