From 09631f14668dd37574a7e526701efb73eacdd0be Mon Sep 17 00:00:00 2001 From: Catrope Date: Tue, 8 May 2012 17:29:10 -0700 Subject: [PATCH] Make TransactionProcessor actually use DocumentSynchronizer Change-Id: If0ac69026fa34430d811de5f7ca0748d9b1e01cc --- modules/ve2/dm/ve.dm.TransactionProcessor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/ve2/dm/ve.dm.TransactionProcessor.js b/modules/ve2/dm/ve.dm.TransactionProcessor.js index 7ad08112c0..ebec6821e2 100644 --- a/modules/ve2/dm/ve.dm.TransactionProcessor.js +++ b/modules/ve2/dm/ve.dm.TransactionProcessor.js @@ -14,7 +14,7 @@ ve.dm.TransactionProcessor = function( doc, transaction, reversed ) { this.document = doc; this.operations = transaction.getOperations(); // TODO add DocumentSynchronizer - this.synchronizer = new ve.dm.DocumentSynchronizer( this.model ); + this.synchronizer = new ve.dm.DocumentSynchronizer( doc ); this.reversed = reversed; // Linear model offset that we're currently at @@ -72,8 +72,7 @@ ve.dm.TransactionProcessor.prototype.process = function() { while ( ( op = this.nextOperation() ) ) { this.executeOperation( op ); } - // TODO add DocumentSynchronizer - //this.synchronizer.synchronize(); + this.synchronizer.synchronize(); }; /**