Fix eslint

This commit is contained in:
Tom MacWright
2016-09-06 10:18:05 -04:00
parent 2b366b5f78
commit 4fcbcddc5b
4 changed files with 8 additions and 8 deletions

View File

@@ -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);
}
};

View File

@@ -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, ⇧

View File

@@ -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);

View File

@@ -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')