Namespace all events

This commit is contained in:
Tom MacWright
2012-12-11 12:02:01 -05:00
parent c8b79dd4a0
commit 435b7f46fc
8 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -40,14 +40,14 @@ iD.commit = function() {
body.append('button').text('Save')
.attr('class', 'save')
.on('click', function() {
.on('click.save', function() {
event.save({
comment: d3.select('textarea.changeset-comment').node().value
});
});
body.append('button').text('Cancel')
.attr('class', 'cancel')
.on('click', function() {
.on('click.cancel', function() {
event.cancel();
});
}