From bb65916e067c37a270d056cdf5d5085b7fd9075f Mon Sep 17 00:00:00 2001 From: Ansis Brammanis Date: Sat, 12 Jan 2013 02:15:33 -0500 Subject: [PATCH] Fix careless naming, fixing node dragging --- js/id/graph/graph.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/js/id/graph/graph.js b/js/id/graph/graph.js index b6d0485b3..cf3ed96f8 100644 --- a/js/id/graph/graph.js +++ b/js/id/graph/graph.js @@ -38,18 +38,18 @@ iD.Graph.prototype = { parentWays: function(entity) { var graph = this, - entity, + ent, id; if (!graph.calculatedParentWays) { for (var i in graph.entities) { - entity = graph.entities[i]; - if (entity && entity.type === 'way') { - for (var j = 0; j < entity.nodes.length; j++) { - id = entity.nodes[j]; + ent = graph.entities[i]; + if (ent && ent.type === 'way') { + for (var j = 0; j < ent.nodes.length; j++) { + id = ent.nodes[j]; this._parentWays[id] = this._parentWays[id] || []; - if (this._parentWays[id].indexOf(entity) < 0) { - this._parentWays[id].push(entity); + if (this._parentWays[id].indexOf(ent) < 0) { + this._parentWays[id].push(ent); } } }