diff --git a/data/deprecated.js b/data/deprecated.js
index 7cc6904ed..53457c9f3 100644
--- a/data/deprecated.js
+++ b/data/deprecated.js
@@ -108,13 +108,5 @@ iD.data.deprecated = [
shop: 'supermarket',
organic: 'only'
}
- },
- // entirely discarded tags
- { old: { 'tiger:upload_uuid': '*' } },
- { old: { 'tiger:tlid': '*' } },
- { old: { 'tiger:source': '*' } },
- { old: { 'tiger:separated': '*' } },
- { old: { 'geobase:datasetName': '*' } },
- { old: { 'geobase:uuid': '*' } },
- { old: { 'sub_sea:type': '*' } }
+ }
];
diff --git a/data/discarded.js b/data/discarded.js
new file mode 100644
index 000000000..7a1e4580e
--- /dev/null
+++ b/data/discarded.js
@@ -0,0 +1,10 @@
+// entirely discarded tags
+iD.data.discarded = [
+ 'tiger:upload_uuid',
+ 'tiger:tlid',
+ 'tiger:source',
+ 'tiger:separated',
+ 'geobase:datasetName',
+ 'geobase:uuid',
+ 'sub_sea:type'
+];
diff --git a/index.html b/index.html
index 31f06870a..37ff61404 100644
--- a/index.html
+++ b/index.html
@@ -35,6 +35,7 @@
+
diff --git a/js/id/behavior/select.js b/js/id/behavior/select.js
index 3d10db144..5df11b91f 100644
--- a/js/id/behavior/select.js
+++ b/js/id/behavior/select.js
@@ -42,7 +42,7 @@ iD.behavior.Select = function(context) {
selection.on('mousemove.select', null);
};
// save the event for the click handler
- })(d3.event), 400);
+ })(d3.event), 200);
}
}
diff --git a/js/id/graph/history.js b/js/id/graph/history.js
index ac36d564f..04d52f6ab 100644
--- a/js/id/graph/history.js
+++ b/js/id/graph/history.js
@@ -18,7 +18,11 @@ iD.History = function(context) {
graph = actions[i](graph);
}
- return {graph: graph, annotation: annotation, imagery_used: imagery_used};
+ return {
+ graph: graph,
+ annotation: annotation,
+ imagery_used: imagery_used
+ };
}
function change(previous) {
@@ -128,9 +132,16 @@ iD.History = function(context) {
changes: function() {
var difference = history.difference();
+
+ function discardTags(entity) {
+ return entity.update({
+ tags: _.omit(entity.tags, iD.data.discarded)
+ });
+ }
+
return {
- modified: difference.modified(),
- created: difference.created(),
+ modified: difference.modified().map(discardTags),
+ created: difference.created().map(discardTags),
deleted: difference.deleted()
};
},