onDidFailToExecute: (fn) ->
@emitter.on('failed-to-execute', fn)
+ onDidProcessOpStack: (fn) ->
+ @emitter.on('processed-op-stack', fn)
+
pushOperations: (operations) ->
@opStack.push operations
else
throw e
@clearOpStack()
+ @emitter.emit('processed-op-stack')
module.exports = ExState