mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
Store flag on _parentWays itself, fixes #392
Relying here on the fact that `calculated` will never collide with an actual entity ID.
This commit is contained in:
@@ -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] || [];
|
||||
|
||||
Reference in New Issue
Block a user