Get rid of ghost node in connections. Fixes #213

This commit is contained in:
Tom MacWright
2012-12-06 16:17:09 -05:00
parent d84d33ea8d
commit 38ecfc949c

View File

@@ -52,6 +52,7 @@ iD.modes.DrawRoad = function(way_id, direction) {
return finish(iD.modes.Select(way));
} else {
// connect a way to an existing way
mode.history.replace(iD.actions.DeleteNode(node));
mode.history.replace(iD.actions.AddWayNode(way, datum, index));
}
} else if (datum.type === 'way') {