diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-05 18:56:42 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-05 18:57:51 +0200 |
| commit | f8fb9e68241e18e53a5cbd13cf17ebda26e08fe5 (patch) | |
| tree | ab723d24f2fee44e35308d3cb5c7b421efe27cc5 | |
| parent | 870282c1df3bcf0ead8a0f6048aabd941220b30d (diff) | |
client: remove console logs and fix some undeclared variables (ff warnings)
| -rw-r--r-- | src/client/model/graph.js | 6 | ||||
| -rw-r--r-- | src/client/view/graph_view.js | 10 |
2 files changed, 3 insertions, 13 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index 222c809b..cebd7ef1 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -109,8 +109,6 @@ function Graph(spec) { console.log('error:'); console.dir(error); } - console.log("COMMIT DIFF TOPO"); - console.dir(topo_diff); rz_api_backend.commit_diff__topo(topo_diff, __commit_diff_ajax__topo, graph_on_error); } this.commit_and_tx_diff__topo = commit_and_tx_diff__topo; @@ -752,7 +750,6 @@ function Graph(spec) { * FIXME: use a different object? different properties in the same object? */ function commit_diff__topo(diff) { - console.dir(diff); _add_node_set(diff.node_set_add); _add_link_set(diff.link_set_add); // done under protest @@ -771,9 +768,8 @@ function Graph(spec) { function load_from_backend(on_success) { function on_success__ajax(diff) { - console.dir(diff); __commit_diff_ajax__topo(diff); - undefined != on_success && on_success() + undefined != on_success && on_success(); } rz_api_backend.clone(0, on_success__ajax); diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index 178a5209..29391fc5 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -51,6 +51,7 @@ function GraphView(spec) { force, drag, vis, + deliverables, // FIXME - want to use parent_element w = $(document.body).innerWidth(), h = $(document.body).innerHeight(), @@ -108,12 +109,6 @@ function GraphView(spec) { graph.diffBus.onValue(function (diff) { var relayout = !temporary && (false == model_diff.is_attr_diff(diff)); - if (relayout) { - console.log('****** ' + graph_name + ' graph relayout *******'); - } else { - console.log('****** ' + graph_name + ' graph update *******'); - } - console.dir(diff); update_view(relayout); }); @@ -188,6 +183,7 @@ function GraphView(spec) { link_g, linktext, nodetext, + circle, unselected_selector = '#' + graph_name + ' #link-group', selected_selector = '#' + graph_name + ' #selected-link-group', unselected_link_group = document.querySelector(unselected_selector), @@ -286,8 +282,6 @@ function GraphView(spec) { .data(graph.nodes(), function(d) { return d.id; }); - console.log("update update update update"); - console.dir(node); var nodeEnter = node.enter() .append("g") |
