Update snap.js

this was undefined inside the call to selectedFeatures.remove
This commit is contained in:
Dominic Rose
2018-10-12 12:00:38 +02:00
committed by GitHub
parent 0f15d38ae7
commit 90395c2355

View File

@@ -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) {