This commit is contained in:
Ansis Brammanis
2013-04-05 13:31:08 -04:00
parent 2b13de1e3f
commit a8cf59e21c
+1 -2
View File
@@ -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;
});
}