From 5063f4d868a3c25c509ba7e579a63a83fc891ef3 Mon Sep 17 00:00:00 2001 From: Simon Seyock Date: Mon, 3 Jul 2017 11:43:11 +0200 Subject: [PATCH] Removed usage of private property --- examples/modify-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/modify-test.js b/examples/modify-test.js index c0dcd7904b..daf61dd1e0 100644 --- a/examples/modify-test.js +++ b/examples/modify-test.js @@ -225,7 +225,7 @@ var modify = new ol.interaction.Modify({ style: overlayStyle, insertVertexCondition: function() { // prevent new vertices to be added to the polygons - return !this.features_.getArray().every(function(feature) { + return !select.getFeatures().getArray().every(function(feature) { return feature.getGeometry().getType().match(/Polygon/); }); }