From 651c3473569e3112ae50aa236d8c1c7c8f669c4c Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 27 Nov 2012 18:12:28 -0500 Subject: [PATCH] Fix finding modified elements, fix casing of map --- index.html | 2 +- js/id/graph/entity.js | 1 + js/id/graph/history.js | 2 +- js/id/id.js | 4 +++- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index b8304e9c5..2fe8e7db4 100644 --- a/index.html +++ b/index.html @@ -21,7 +21,7 @@ - + diff --git a/js/id/graph/entity.js b/js/id/graph/entity.js index e3c2d00e6..766cf8ab2 100644 --- a/js/id/graph/entity.js +++ b/js/id/graph/entity.js @@ -20,6 +20,7 @@ iD.Entity = function(a, b) { iD.Entity.prototype = { update: function(attrs) { + attrs._updated = true; return iD.Entity(this, attrs); }, diff --git a/js/id/graph/history.js b/js/id/graph/history.js index 92cb0da4d..7f962b4d8 100644 --- a/js/id/graph/history.js +++ b/js/id/graph/history.js @@ -58,7 +58,7 @@ iD.History.prototype = { // generate reports of changes for changesets to use modify: function() { - return this.stack[this.index].creations(); + return this.stack[this.index].modifications(); }, create: function() { diff --git a/js/id/id.js b/js/id/id.js index d2cfba300..bfb5b384c 100644 --- a/js/id/id.js +++ b/js/id/id.js @@ -85,7 +85,9 @@ var iD = function(container) { .attr('class', 'modal commit-pane') .datum(map.history.changes()); modal.call(iD.commit() - .on('cancel', shaded.remove) + .on('cancel', function() { + shaded.remove(); + }) .on('save', save)); }); });