From 20841f213b5e94e022f140e1510077d5b4d1b6a2 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 16 Oct 2012 23:14:33 -0400 Subject: [PATCH] Remove dojo array dependence in Node --- js/iD/Node.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/iD/Node.js b/js/iD/Node.js index 07a11a8bc..ef7b874c4 100644 --- a/js/iD/Node.js +++ b/js/iD/Node.js @@ -34,9 +34,8 @@ iD.Node.prototype = { }, refresh: function() { - var ways= this.parentWays(); - var conn= this.connection; - array.forEach(ways,function(way) { conn.refreshEntity(way); }); + var ways = this.parentWays(); + _.each(ways, _.bind(function(way) { this.connection.refreshEntity(way); }, this)); this.connection.refreshEntity(this); },