From 08e95251d2e30c9375a18743b26419f50c0fa574 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 29 Sep 2014 14:20:03 +0300 Subject: rhizicore: dash bugfix another refactor introduced (by cd7157955d15802f34dee6ac4578ae249f3e397d), forgot to change style at update instead of enter. --- scripts/rhizicore.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js index 9b1512c3..f22e87a7 100644 --- a/scripts/rhizicore.js +++ b/scripts/rhizicore.js @@ -534,16 +534,16 @@ function myGraph(el) { .attr("class", function(d) { return state_to_link_class[d.state] || 'link graph'; }) - .style("stroke-dasharray", function(d,i){ - if(d.name && d.name.replace(/ /g,"")=="and" && d.state==="temp") - return "3,3"; - else - return "0,0"; - }) .attr("marker-end", "url(#end)") .on("click", function(d, i) { //$('#textanalyser').val("node("+d.source.id+") -> "+d.name+" -> node("+d.target.id+")"); });; + link.style("stroke-dasharray", function(d,i){ + if(d.name && d.name.replace(/ /g,"")=="and" && d.state==="temp") + return "3,3"; + else + return "0,0"; + }); link.exit().remove(); -- cgit v1.3.1