diff options
| author | Alon Levy <alon@pobox.com> | 2015-04-13 00:09:01 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-04-13 00:09:01 +0200 |
| commit | 15943f4bd5bfa321d3244c245af779f9fb6f55fc (patch) | |
| tree | e9195ce65a7092bb4624fc0ba598036426b5533f /src/client/view/graph_view.js | |
| parent | d369da612dd1b2dbc0a413121e27e4eeeebdbaf7 (diff) | |
client/graph_view: undo weird d3 data for node_text
Diffstat (limited to 'src/client/view/graph_view.js')
| -rw-r--r-- | src/client/view/graph_view.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/client/view/graph_view.js b/src/client/view/graph_view.js index fbfffb15..f87efab5 100644 --- a/src/client/view/graph_view.js +++ b/src/client/view/graph_view.js @@ -433,10 +433,7 @@ function GraphView(spec) { function node_text_setup() { var node_text; - node_text = vis.selectAll("g.nodetext") - .data(visible_nodes, function (d) { - return text_node_id(d.id); - }); + node_text = set_data_by_id(vis.selectAll("g.nodetext"), visible_nodes); node_text.enter().insert('g') .attr('id', function (d) { return text_node_id(d.id); }) .attr("class", "nodetext graph") |
