mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Fix eslint
This commit is contained in:
@@ -221,7 +221,7 @@ export function d3combobox() {
|
||||
|
||||
options
|
||||
.attr('title', function(d) { return d.title; })
|
||||
.classed('selected', function(d, i) { return i == idx; })
|
||||
.classed('selected', function(d, i) { return i === idx; })
|
||||
.on('mouseover', select)
|
||||
.on('click', accept)
|
||||
.order();
|
||||
@@ -283,7 +283,7 @@ export function d3combobox() {
|
||||
};
|
||||
|
||||
return rebind(combobox, event, 'on');
|
||||
};
|
||||
}
|
||||
|
||||
d3combobox.off = function(input) {
|
||||
input
|
||||
@@ -300,4 +300,4 @@ d3combobox.off = function(input) {
|
||||
|
||||
d3.select(document.body)
|
||||
.on('scroll.combobox', null);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -15,7 +15,7 @@ export function d3keybinding(namespace) {
|
||||
|
||||
function matches(binding, event) {
|
||||
for (var p in binding.event) {
|
||||
if (event[p] != binding.event[p])
|
||||
if (event[p] !== binding.event[p])
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -37,7 +37,7 @@ export function d3keybinding(namespace) {
|
||||
|
||||
function bubble() {
|
||||
var tagName = d3.select(d3.event.target).node().tagName;
|
||||
if (tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA') {
|
||||
if (tagName === 'INPUT' || tagName === 'SELECT' || tagName === 'TEXTAREA') {
|
||||
return;
|
||||
}
|
||||
testBindings(false);
|
||||
@@ -90,7 +90,7 @@ export function d3keybinding(namespace) {
|
||||
};
|
||||
|
||||
return keybinding;
|
||||
};
|
||||
}
|
||||
|
||||
d3keybinding.modifierCodes = {
|
||||
// Shift key, ⇧
|
||||
|
||||
@@ -111,7 +111,7 @@ export function Areas(projection) {
|
||||
paths.exit()
|
||||
.remove();
|
||||
|
||||
var fills = surface.selectAll('.area-fill path.area')[0];
|
||||
var fills = surface.selectAll('.area-fill path.area').nodes();
|
||||
|
||||
var bisect = d3.bisector(function(node) {
|
||||
return -node.__data__.area(graph);
|
||||
|
||||
@@ -14,7 +14,7 @@ export function access(field) {
|
||||
|
||||
var divEnter = wrap.enter().append('div')
|
||||
.attr('class', 'cf preset-input-wrap');
|
||||
divEnter.append('ul')
|
||||
divEnter.append('ul');
|
||||
wrap = wrap.merge(divEnter);
|
||||
|
||||
items = wrap.select('ul').selectAll('li')
|
||||
|
||||
Reference in New Issue
Block a user