mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-02 00:15:12 +02:00
7 lines
258 B
JavaScript
7 lines
258 B
JavaScript
iD.actions.removeRelationEntity = function(relation, entity) {
|
|
return function(graph) {
|
|
var members = _.without(relation.members, entity.id);
|
|
return graph.replace(relation.update({members: members}), 'removed from a relation');
|
|
};
|
|
};
|