Skip to content

Commit 8171e96

Browse files
committed
Converter: Separate Dom->Model and Model->Dom conversion into separate classes
Leave the methods in the same file to make code review easier. Change-Id: I4169ccd9ad126f0404966c5daf113e84e03fb678
1 parent f44f082 commit 8171e96

File tree

3 files changed

+174
-72
lines changed

3 files changed

+174
-72
lines changed

src/ce/ve.ce.TextState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ ve.ce.TextState.prototype.getChangeTransaction = function ( prev, modelDoc, mode
400400
continue;
401401
}
402402
ann = ve.dm.annotationFactory.createFromElement(
403-
modelClass.static.toDataElement( [ element ], ve.dm.converter )
403+
modelClass.static.toDataElement( [ element ], ve.dm.converter.modelFromDomConverter )
404404
);
405405
const oldAnn = oldAnnotations.getComparable( ann );
406406
if ( oldAnn ) {

0 commit comments

Comments
 (0)