diff --git a/modules/es/models/es.SurfaceModel.js b/modules/es/models/es.SurfaceModel.js index 65af8e0949..5816f92feb 100644 --- a/modules/es/models/es.SurfaceModel.js +++ b/modules/es/models/es.SurfaceModel.js @@ -120,6 +120,14 @@ es.SurfaceModel.prototype.pushSelection = function( selection ) { * (such as when replacing - delete, then insert) */ es.SurfaceModel.prototype.transact = function( transaction, isPartial ) { + + if(es.isArray(transaction)) { + for( var i = 0; i < transaction.length; i++ ) { + this.transact( transaction[i] ); + } + return; + } + // console.log( 'tx:' + $.map( transaction.getOperations(), function(tx) { return tx.type; } ).join(",") // + ' isPartial:' + isPartial ); this.doc.commit( transaction );