From f8da6dc6c5fe2aa6520fa34844ef202d5aeaaaff Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 30 Jul 2015 12:26:35 +0300 Subject: client: jshint fixes --- src/client/view/graph_view.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/client/view') diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index da0a3435..687b766f 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -530,7 +530,7 @@ function GraphView(spec) { .attr('id', function(d){ return text_link_id(d.id); }) // append link id to enable data->visual mapping .attr("text-anchor", "middle") .attr("class", "linklabel graph") - .on("click", function(d, i) { + .on("click", function(d) { if (!temporary) { // FIXME: if temporary don't even put a click handler svgInput.enable(this, d); } @@ -561,7 +561,7 @@ function GraphView(spec) { link_g.each(function (d) { link_on_hover(d); }); - link_g.on("click", function(d, i) { + link_g.on("click", function(d) { if (zoomInProgress) { // don't disable zoomInProgress, it will be disabled by the svg_click_handler // after this events bubbles to the svg element @@ -573,8 +573,8 @@ function GraphView(spec) { //var selected_N = selection: - link.attr("class", function(d, i){ - var temp_and = (d.name && d.name.replace(/ /g,"")=="and" && temporary) ? "temp_and" : ""; + link.attr("class", function(d){ + var temp_and = (d.name && d.name.replace(/ /g,"") === "and" && temporary) ? "temp_and" : ""; return ["graph link", temp_and, selection.class__link(d, temporary)].join(' '); }); @@ -640,7 +640,7 @@ function GraphView(spec) { d.height = 900; }); - function load_image(element, image_url, set_href) { + function load_image(element, image_url) { var image = new Image(); image.onload = function () { @@ -673,7 +673,7 @@ function GraphView(spec) { load_image(this, "/static/img/url-icon.png"); }); - function node__click_handler(d, i) { + function node__click_handler(d, _i) { if (d3.event.defaultPrevented) { // drag happened, ignore click https://github.com/mbostock/d3/wiki/Drag-Behavior#on return; -- cgit v1.3.1