Make build-safe

This commit is contained in:
Tom MacWright
2012-12-07 18:25:31 -05:00
parent 01e696135d
commit ab695574c2
+2 -1
View File
@@ -68,6 +68,7 @@ iD.Connection = function() {
delete o.lat;
}
o.id = iD.Entity.id.fromOSM(o.type, o.id);
if (o.type === 'node') o._poi = !refNodes[o.id];
return iD.Entity(o);
}
@@ -76,9 +77,9 @@ iD.Connection = function() {
var root = dom.childNodes[0];
var entities = {};
refNodes = {};
function addEntity(obj) {
var o = objectData(obj);
if (o.type === 'node') o._poi = !refNodes[o.id];
entities[o.id] = o;
}