diff --git a/editcheck/modules/editchecks/ConvertReferenceEditCheck.js b/editcheck/modules/editchecks/ConvertReferenceEditCheck.js index f46c53feb0..d824d7329a 100644 --- a/editcheck/modules/editchecks/ConvertReferenceEditCheck.js +++ b/editcheck/modules/editchecks/ConvertReferenceEditCheck.js @@ -20,7 +20,7 @@ mw.editcheck.ConvertReferenceEditCheck.prototype.onDocumentChange = function ( s const referenceNode = documentModel.getInternalList().getItemNode( index ); const href = ve.ui.CitoidReferenceContextItem.static.getConvertibleHref( referenceNode ); if ( href ) { - const fragment = surfaceModel().getLinearFragment( node.getOuterRange() ); + const fragment = surfaceModel.getLinearFragment( node.getOuterRange() ); return new mw.editcheck.EditCheckAction( { highlights: [ fragment ], selection: fragment,