From d67cb649f26259954d1cfeb0665f93d2059ed1cd Mon Sep 17 00:00:00 2001 From: LV-426 Date: Wed, 10 Dec 2014 03:03:48 +0200 Subject: addLink: drop drop_conjugator_links param, extract apply_conjugator_link_logic() --- src/model/graph.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/model') 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; -- cgit v1.3.1