mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-16 22:03:37 +02:00
simplify
This commit is contained in:
@@ -129,8 +129,7 @@ iD.modes.Select = function(context, selection, initial) {
|
||||
function selected(entity) {
|
||||
if (!entity) return false;
|
||||
if (selection.indexOf(entity.id) >= 0) return true;
|
||||
return d3.select(this) &&
|
||||
_.any(context.graph().parentRelations(entity), function(parent) {
|
||||
return _.any(context.graph().parentRelations(entity), function(parent) {
|
||||
return selection.indexOf(parent.id) >= 0;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user