diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-04 19:15:05 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-05 13:23:57 +0200 |
| commit | 2a2c6ddeb656e1af5382b05ca85f052576b805ec (patch) | |
| tree | 38287cfa901e71db53a267fccc9ec0ccd3c98a86 /src/client/model/graph.js | |
| parent | 7f8e7c5e3571d6bb86877288b7cddad62cd703a2 (diff) | |
bubble property used, lacks animation (noticeably)
Diffstat (limited to 'src/client/model/graph.js')
| -rw-r--r-- | src/client/model/graph.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index 61797886..2c8298ad 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -688,14 +688,17 @@ function Graph(temporary) { return foundNodes; } - function clear() { + function clear(push_diff) { + push_diff = push_diff === undefined ? true : push_diff; id_to_node_map = {}; node_map = {} id_to_link_map = {}; link_map = {}; invalidate_links = true; invalidate_nodes = true; - // FIXME: push on diffBus? + if (push_diff) { + diffBus.push({}); // FIXME: better value + } } this.clear = clear; |
