From fdc5824c5a1b6910fc0a073ae048b729f1738eb4 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Thu, 16 May 2013 14:33:43 -0700 Subject: [PATCH] Simplify --- js/id/svg/vertices.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/js/id/svg/vertices.js b/js/id/svg/vertices.js index 8911a80b9..f1179fc4e 100644 --- a/js/id/svg/vertices.js +++ b/js/id/svg/vertices.js @@ -29,7 +29,7 @@ iD.svg.Vertices = function(projection, context) { } } - function addSiblingAndChildVertices(id) { + ids.forEach(function(id) { var entity = context.hasEntity(id); if (entity && entity.type === 'node') { vertices[entity.id] = entity; @@ -39,10 +39,6 @@ iD.svg.Vertices = function(projection, context) { } else if (entity) { addChildVertices(entity); } - } - - ids.forEach(function(id) { - addSiblingAndChildVertices(id, 'vertex-selected'); }); return vertices;