mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-25 23:13:42 +00:00
16 lines
381 B
JavaScript
16 lines
381 B
JavaScript
iD.actions.DeleteMultiple = function(ids) {
|
|
return function(graph) {
|
|
var actions = {
|
|
way: iD.actions.DeleteWay,
|
|
node: iD.actions.DeleteNode,
|
|
relation: iD.actions.DeleteRelation
|
|
};
|
|
|
|
ids.forEach(function (id) {
|
|
graph = actions[graph.entity(id).type](id)(graph);
|
|
});
|
|
|
|
return graph;
|
|
};
|
|
};
|