Fix bad typeof

This commit is contained in:
Tom MacWright
2013-01-08 16:10:57 -05:00
parent 9fc05f5e35
commit b244d37368
+1 -1
View File
@@ -78,7 +78,7 @@ iD.Map = function() {
var only = {};
difference.forEach(function buildDifference(id) {
only[id] = graph.fetch(id);
if (typeof only[id].type === 'node') {
if (only[id].type === 'node') {
graph.parentWays(id).forEach(function buildOnly(parent) {
// Don't re-fetch parents
if (only[parent.id] === undefined) {