diff options
| author | Alon Levy <alon@pobox.com> | 2015-07-28 10:28:58 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-07-28 10:28:58 +0300 |
| commit | ddeb4f73338eb14bb8ca21596fe472b529344b0d (patch) | |
| tree | 9fc5a83fd2c47f2d1e84a6969ff62b2d29d36096 | |
| parent | a1accc78c3b213fb398c492f3510592ae2a63f13 (diff) | |
client/view/graph_view: group similar functions
| -rw-r--r-- | src/client/view/graph_view.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index cf41b386..d69c7440 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -781,10 +781,6 @@ function GraphView(spec) { } } - function layout__load_graph() { - layout.nodes_links(nodes__visible(), links__visible()); - } - function segment_in_segment(inner_low, inner_high, outer_low, outer_high) { return (inner_low >= outer_low && inner_low < outer_high && @@ -1210,6 +1206,10 @@ function GraphView(spec) { .start(); } + function layout__load_graph() { + layout.nodes_links(nodes__visible(), links__visible()); + } + function set_layout(new_layout) { if (layout !== undefined) { layout.save(); |
