summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-29 14:20:03 +0300
committerAlon Levy <alon@pobox.com>2014-09-29 14:20:09 +0300
commit08e95251d2e30c9375a18743b26419f50c0fa574 (patch)
tree5fe92a1c650eb1ff5f5fab607e0b67fc45db87a7
parente2c5c4e5584e9fe77eddc28363fe0f27065d45c0 (diff)
rhizicore: dash bugfix
another refactor introduced (by cd7157955d15802f34dee6ac4578ae249f3e397d), forgot to change style at update instead of enter.
-rw-r--r--scripts/rhizicore.js12
1 files changed, 6 insertions, 6 deletions
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();