Commit 4db68c2a authored by Romain Loth's avatar Romain Loth

simplify highlightSelectedNodes (conditions were useless?)

parent 9f8dd4c5
......@@ -75,21 +75,8 @@ function highlightSelectedNodes(flag){
console.log("\t***methods.js:highlightSelectedNodes(flag)"+flag+" selEmpty:"+is_empty(selections))
if(!is_empty(selections)){
for(var i in selections) {
if(TW.Nodes[i].type==TW.catSoc && swclickActual=="social"){
node = TW.partialGraph.graph.nodes(i);
node.active = flag;
}
else if(TW.Nodes[i].type==TW.catSem && swclickActual=="semantic") {
node = TW.partialGraph.graph.nodes(i);
node.active = flag;
}
else if(swclickActual=="sociosemantic") {
node = TW.partialGraph.graph.nodes(i);
node.active = flag;
}
else break;
TW.partialGraph.graph.nodes(i).active = flag
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment