mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 12:16:51 +00:00
Make TransactionProcessor actually use DocumentSynchronizer
Change-Id: If0ac69026fa34430d811de5f7ca0748d9b1e01cc
This commit is contained in:
parent
22c88f77c3
commit
09631f1466
|
@ -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();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue