From 90395c2355c4d54424b63e5acac62f37ed3126b5 Mon Sep 17 00:00:00 2001 From: Dominic Rose Date: Fri, 12 Oct 2018 12:00:38 +0200 Subject: [PATCH] Update snap.js this was undefined inside the call to selectedFeatures.remove --- examples/snap.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/snap.js b/examples/snap.js index cea9b3ee11..ab5d16d24c 100644 --- a/examples/snap.js +++ b/examples/snap.js @@ -53,7 +53,9 @@ const ExampleModify = { const selectedFeatures = this.select.getFeatures(); this.select.on('change:active', function() { - selectedFeatures.forEach(selectedFeatures.remove, selectedFeatures); + selectedFeatures.forEach(function(each) { + selectedFeatures.remove(each); + }); }); }, setActive: function(active) {