From d0e53a7070868ca9012ca18886434f958b60aff9 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 18 Mar 2013 12:46:43 -0700 Subject: [PATCH] Fix child calculation --- js/id/svg/vertices.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/js/id/svg/vertices.js b/js/id/svg/vertices.js index c16c76fd2..de475ebb2 100644 --- a/js/id/svg/vertices.js +++ b/js/id/svg/vertices.js @@ -31,9 +31,9 @@ iD.svg.Vertices = function(projection, context) { function addSiblingAndChildVertices(id, klass) { var entity = context.entity(id); - if (entity && entity.type === 'vertex') { - visible[hover.id] = klass; - context.parentWays(entity).forEach(function(entity) { + if (entity && entity.type === 'node') { + visible[entity.id] = klass; + context.graph().parentWays(entity).forEach(function(entity) { addChildVertices(entity, klass); }); } else if (entity) {