mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 00:07:03 +02: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, ⇧
|
||||
|
||||
Reference in New Issue
Block a user