Return function arg's result from Editor::batchUpdates

This commit is contained in:
Nathan Sobo
2014-04-17 16:56:42 -06:00
parent bef554709f
commit f59a8f1e68

View File

@@ -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}>"