Fix child calculation

This commit is contained in:
John Firebaugh
2013-03-18 12:46:43 -07:00
parent a2f86154ce
commit d0e53a7070

View File

@@ -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) {