From f7f0b7b1fa770a105d70eb593b3ad9bd87d5e8b9 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Mon, 22 Apr 2013 15:48:09 -0400 Subject: [PATCH] Refix commit UI. --- js/id/ui/commit.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/id/ui/commit.js b/js/id/ui/commit.js index 1ebfe1603..24e22761a 100644 --- a/js/id/ui/commit.js +++ b/js/id/ui/commit.js @@ -5,9 +5,10 @@ iD.ui.Commit = function(context) { function zipSame(d) { var c = [], n = -1; for (var i = 0; i < d.length; i++) { + console.log(d[i].geometry(context.graph())); var desc = { name: d[i].tags.name || presets.match(d[i], context.graph()).name(), - geometry: context.geometry(d[i].id), + geometry: d[i].geometry(context.graph()), count: 1, tagText: iD.util.tagText(d[i]) }; @@ -136,7 +137,7 @@ iD.ui.Commit = function(context) { li.append('strong') .text(function(d) { - return (d.count > 1) ? d.geometry + 's ' : d.geometry + ' '; + return d.geometry + ' '; }); li.append('span')