diff options
| author | Alon Levy <alon@pobox.com> | 2015-07-30 12:26:35 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-07-30 18:05:06 +0300 |
| commit | f8da6dc6c5fe2aa6520fa34844ef202d5aeaaaff (patch) | |
| tree | 70286de21b99a7a99aeaad6d505070c9ba80f980 /src/client/view | |
| parent | 4a30ef3c352ebe70c3e6f1af4a728d3f82c3c2a8 (diff) | |
client: jshint fixes
Diffstat (limited to 'src/client/view')
| -rw-r--r-- | src/client/view/graph_view.js | 12 |
1 files changed, 6 insertions, 6 deletions
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; |
