Camel case

This commit is contained in:
John Firebaugh
2013-04-11 10:11:10 -04:00
parent 0540060f2e
commit 4a960216d1
+4 -5
View File
@@ -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();