Commit 2ff8ce6a authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

remove the related edges if a node is removed.

parent 06f467ae
......@@ -230,6 +230,11 @@
$("#" + element_id).remove();
delete(priv.node_container[element_id]);
delete(priv.preference_container['coordinates'][element_id]);
$.each(priv.edge_container, function (k, v) {
if (element_id == v[0] || element_id == v[1]) {
delete(priv.edge_container[k]);
}
});
priv.onDataChange();
};
......
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