mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-23 08:39:56 +02:00
Camel case
This commit is contained in:
@@ -285,23 +285,23 @@ iD.ui.Background = function(context) {
|
||||
.classed('expanded', false)
|
||||
.on('click', function() {
|
||||
var exp = d3.select(this).classed('expanded');
|
||||
nudge_container.style('display', exp ? 'none' : 'block');
|
||||
nudgeContainer.style('display', exp ? 'none' : 'block');
|
||||
d3.select(this).classed('expanded', !exp);
|
||||
d3.event.preventDefault();
|
||||
});
|
||||
|
||||
var nudge_container = adjustments
|
||||
var nudgeContainer = adjustments
|
||||
.append('div')
|
||||
.attr('class', 'nudge-container cf')
|
||||
.style('display', 'none');
|
||||
|
||||
nudge_container.selectAll('button')
|
||||
nudgeContainer.selectAll('button')
|
||||
.data(directions).enter()
|
||||
.append('button')
|
||||
.attr('class', function(d) { return d[0] + ' nudge'; })
|
||||
.on('mousedown', clickNudge);
|
||||
|
||||
var resetButton = nudge_container.append('button')
|
||||
var resetButton = nudgeContainer.append('button')
|
||||
.attr('class', 'reset')
|
||||
.on('click', function () {
|
||||
context.background().offset([0, 0]);
|
||||
@@ -315,7 +315,6 @@ iD.ui.Background = function(context) {
|
||||
.title(t('background.reset'))
|
||||
.placement('right'));
|
||||
|
||||
|
||||
context.map()
|
||||
.on('move.background-update', _.debounce(update, 1000));
|
||||
update();
|
||||
|
||||
Reference in New Issue
Block a user