Fix difference

This commit is contained in:
Ansis Brammanis
2013-01-16 11:34:50 -05:00
parent 0a1e16a319
commit fc272199c7

View File

@@ -134,7 +134,7 @@ iD.Graph.prototype = {
entity = this.entities[id];
oldentity = graph.entities[id];
if (entity !== oldentity) {
if (entity.type === 'way') {
if (entity && entity.type === 'way') {
result = oldentity
? result
.concat(_.difference(entity.nodes, oldentity.nodes))