From 3d1e2a2ca5c2bd21d0b64db8b836e5c0abad3bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Wr=C3=B3bel?= Date: Mon, 27 Feb 2017 14:52:55 +0100 Subject: [PATCH] Simplified adding marker to the document. --- src/controller/datacontroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller/datacontroller.js b/src/controller/datacontroller.js index b4ebbd5a9..068615efb 100644 --- a/src/controller/datacontroller.js +++ b/src/controller/datacontroller.js @@ -225,7 +225,7 @@ export default class DataController { markerData.endPath ? new ModelPosition( modelRoot, markerData.endPath ) : null ); - batch.setMarker( this.model.markers.set( markerName, range ) ); + batch.setMarker( markerName, range ); } } ); }