diff --git a/src/dagre/position/index.js b/src/dagre/position/index.js index d02ef78..62008d8 100644 --- a/src/dagre/position/index.js +++ b/src/dagre/position/index.js @@ -8,7 +8,7 @@ function position(g) { g = util.asNonCompoundGraph(g); positionY(g); - _.forEach(positionX(g), function (x, v) { + _.forOwn(positionX(g), function (x, v) { g.node(v).x = x; }); }