From 8e75a6e9adc9aa12ebdfead58e4bf881c5446df6 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Sun, 11 Jan 2015 16:34:37 +0200 Subject: update_node: rm incoming ID change detection - should not occur for incoming attr_diffs --- src/client/model/graph.js | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src') diff --git a/src/client/model/graph.js b/src/client/model/graph.js index d7fd1add..2ca8ca2b 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -449,16 +449,8 @@ function Graph(spec) { util.assert(id_to_node_map && id_to_node_map[node_id], "bad return value from ajax"); - if (id_to_node_map[node_id].id != node_id){ - // TODO: handle incoming ID update - util.assert(false, 'update_node: id attr change'); - } - var ret_node = id_to_node_map[node_id]; for (var key in ret_node){ - if ('name' == key || 'id' == key){ - continue; - } node[key] = ret_node[key]; } -- cgit v1.3.1