Remove dojo array dependence in Node

This commit is contained in:
Tom MacWright
2012-10-16 23:14:33 -04:00
parent 2f9d51734d
commit 20841f213b
+2 -3
View File
@@ -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);
},