mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
Namespace all events
This commit is contained in:
+2
-2
@@ -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();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user