Commit 54242ede authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

clearAll should not brutally remove elements from DOM.

......@@ -319,10 +319,11 @@
};
that.clearAll = function () {
$("#render").children().remove();
$.each(priv.node_container, function (element_id) {
priv.removeElement(element_id);
});
// delete anything if still remains
$("#render").children().remove();
};
that.connect = function (source_id, target_id) {
......
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