summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-09-21 18:33:43 +0300
committerAlon Levy <alon@pobox.com>2014-09-21 18:33:43 +0300
commit7696312020127b45e9e7747c586f7c9723b88ffa (patch)
treec2f256372f790001ac1b126de2c0acb4130e9ef8 /scripts
parenta0660a8b35ce41320d4a5ff550d24b269ad0e15c (diff)
rhizicore cleanup: use single if for a conjunction, reindent
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rhizicore.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/rhizicore.js b/scripts/rhizicore.js
index dcc35dc6..d90daac9 100644
--- a/scripts/rhizicore.js
+++ b/scripts/rhizicore.js
@@ -528,7 +528,12 @@ function myGraph(el) {
} else return "link graph";
})
- .style("stroke-dasharray", function(d,i){if(d.name)if(d.name.replace(/ /g,"")=="and" && d.state==="temp")return"3, 3";else return "0,0";})
+ .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+")");