diff options
| author | Alon Levy <alon@pobox.com> | 2015-01-05 15:33:09 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-01-05 15:33:09 +0200 |
| commit | c00527d3809eeceda0a141ab6a02b35834edbbab (patch) | |
| tree | c42ec5fd92724ba0ceae3c6b52c9800f0ce2b45c /src/client | |
| parent | 2c570a8ebd20433178735c1ef91c08688351baaf (diff) | |
client/model/graph: add local commit_and_tx_diff__topo
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/model/graph.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js index 720e13aa..ac074ef7 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -76,7 +76,7 @@ function Graph(spec) { * NOTE: currently this function transmits only. Later we want to optimistically * first commit and then transmit. */ - this.commit_and_tx_diff__topo = function (topo_diff) { + var commit_and_tx_diff__topo = function (topo_diff) { $.merge(topo_diff.link_set_rm, nodes_to_touched_links(topo_diff.node_set_rm)); topo_diff.node_set_add = topo_diff.node_set_add.map(function(n) { util.assert(n.id !== undefined, "undefined id in node in topo diff"); @@ -113,6 +113,7 @@ function Graph(spec) { 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; /** * Inner implementation |
