mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-16 18:52:57 +00:00
Fix global leak
This commit is contained in:
@@ -301,17 +301,17 @@ iD.ui.Background = function(context) {
|
||||
.attr('class', function(d) { return d[0] + ' nudge'; })
|
||||
.on('mousedown', clickNudge);
|
||||
|
||||
resetButton = nudge_container.append('button')
|
||||
var resetButton = nudge_container.append('button')
|
||||
.attr('class', 'reset')
|
||||
.on('click', function() {
|
||||
.on('click', function () {
|
||||
context.background().offset([0, 0]);
|
||||
context.redraw();
|
||||
})
|
||||
});
|
||||
|
||||
resetButton.append('div')
|
||||
.attr('class','icon undo');
|
||||
resetButton.append('div')
|
||||
.attr('class', 'icon undo');
|
||||
|
||||
resetButton.call(bootstrap.tooltip()
|
||||
resetButton.call(bootstrap.tooltip()
|
||||
.title(t('background.reset'))
|
||||
.placement('right'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user