Fix snapping after moving (fixes #880)

This commit is contained in:
John Firebaugh
2013-03-01 10:41:55 -08:00
parent b09bc8cfa2
commit 787e76dbd1
2 changed files with 6 additions and 3 deletions
+2 -1
View File
@@ -52,7 +52,8 @@ iD.svg.Points = function(projection) {
// sets the data (point entity) on the element
groups.select('image')
.attr('xlink:href', imageHref);
groups.select('.shadow, .stroke');
groups.select('.shadow');
groups.select('.stroke');
groups.exit()
.remove();
+4 -2
View File
@@ -39,8 +39,10 @@ iD.svg.Vertices = function(projection) {
.classed('shared', function(entity) { return graph.isShared(entity); });
// Selecting the following implicitly
// sets the data (vertix entity) on the elements
groups.select('circle.fill, circle.stroke, circle.shadow');
// sets the data (vertex entity) on the elements
groups.select('circle.fill');
groups.select('circle.stroke');
groups.select('circle.shadow');
groups.exit()
.remove();