Update snap.js
this was undefined inside the call to selectedFeatures.remove
This commit is contained in:
1 parent
0f15d38ae7
commit
90395c2355
1 file changed
+3
-1
+3
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user