mirror of
https://github.com/atom/atom.git
synced 2026-02-10 22:55:09 -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: ->
|
||||
|
||||
Reference in New Issue
Block a user