diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index cf3ed96f8..37f430c0f 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -41,7 +41,7 @@ iD.Graph.prototype = { ent, id; - if (!graph.calculatedParentWays) { + if (!this._parentWays.calculated) { for (var i in graph.entities) { ent = graph.entities[i]; if (ent && ent.type === 'way') { @@ -54,7 +54,7 @@ iD.Graph.prototype = { } } } - graph.calculatedParentWays = true; + this._parentWays.calculated = true; } return this._parentWays[entity.id] || [];