mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Fix child calculation
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user