Fixed references to deleted items

This commit is contained in:
Aaron Lidman
2013-10-21 14:45:43 -04:00
parent 1eb4c6ce78
commit 7ead26928d
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -163,7 +163,7 @@ iD.ui.Commit = function(context) {
li.append('span')
.attr('class', function(d) {
return context.geometry(d.entity.id) + ' icon icon-pre-text';
return d.geometryType + ' icon icon-pre-text';
});
// we want to change this to an icon/bg color/something else
@@ -176,13 +176,13 @@ iD.ui.Commit = function(context) {
li.append('strong')
.attr('class', 'entity-type')
.text(function(d) {
return context.presets().match(d.entity, context.graph()).name();
return context.presets().match(d.entity, context.history().base()).name();
});
li.append('span')
.attr('class', 'entity-name')
.text(function(d) {
return ' ' + (iD.util.displayName(d.entity) || '');
return ' ' + d.name;
});
li.style('opacity', 0)
+3 -1
View File
@@ -5,8 +5,10 @@ iD.util.relevantChanges = function(graph, changes, base) {
function addEntity(entity, changeType) {
relevant[entity.id] = {
name: iD.util.displayName(entity) || '',
entity: entity,
changeType: changeType
changeType: changeType,
geometryType: base.entity(entity.id).geometry(base)
};
}