Make TransactionProcessor actually use DocumentSynchronizer

Change-Id: If0ac69026fa34430d811de5f7ca0748d9b1e01cc
This commit is contained in:
Catrope 2012-05-08 17:29:10 -07:00
parent 22c88f77c3
commit 09631f1466

View file

@ -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();
};
/**