diff --git a/js/id/modes/select.js b/js/id/modes/select.js index 0d42f9dfa..53740ded0 100644 --- a/js/id/modes/select.js +++ b/js/id/modes/select.js @@ -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; }); }