summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-12-10 03:03:48 +0200
committerAlon Levy <alon@pobox.com>2014-12-16 10:59:14 +0200
commitd67cb649f26259954d1cfeb0665f93d2059ed1cd (patch)
treef92484c87d120a99ea84675c2e6a0d4d9ed3da75 /src/model
parent23760b4ae30876e064788fb8060fc7987e3d29c4 (diff)
addLink: drop drop_conjugator_links param, extract apply_conjugator_link_logic()
Diffstat (limited to 'src/model')
-rw-r--r--src/model/graph.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/model/graph.js b/src/model/graph.js
index 2e28d727..cc838db2 100644
--- a/src/model/graph.js
+++ b/src/model/graph.js
@@ -311,17 +311,14 @@ function Graph() {
+ dst_name + ' (' + dst_id + ')');
return;
}
- this.addLink(src_id, dst_id, name, state, drop_conjugator_links);
+ this.addLink(src_id, dst_id, name, state);
}
- function addLink(src_id, dst_id, name, state, drop_conjugator_links) {
+ function addLink(src_id, dst_id, name, state, peer_notify) {
var src = find_node__by_id(src_id);
var dst = find_node__by_id(dst_id);
var found = findLink(src_id,dst_id,name);
- if (drop_conjugator_links && name && (name.replace(/ /g,"") === "and")) {
- state = "temp";
- }
if (undefined === src || undefined === dst) {
console.log('addLink: undefined src / dst');
return;