mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Return function arg's result from Editor::batchUpdates
This commit is contained in:
@@ -1789,8 +1789,9 @@ class Editor extends Model
|
||||
|
||||
batchUpdates: (fn) ->
|
||||
@emit 'batched-updates-started'
|
||||
fn()
|
||||
result = fn()
|
||||
@emit 'batched-updates-ended'
|
||||
result
|
||||
|
||||
inspect: ->
|
||||
"<Editor #{@id}>"
|
||||
|
||||
Reference in New Issue
Block a user