summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-05 15:33:09 +0200
committerAlon Levy <alon@pobox.com>2015-01-05 15:33:09 +0200
commitc00527d3809eeceda0a141ab6a02b35834edbbab (patch)
treec42ec5fd92724ba0ceae3c6b52c9800f0ce2b45c /src/client/model
parent2c570a8ebd20433178735c1ef91c08688351baaf (diff)
client/model/graph: add local commit_and_tx_diff__topo
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/graph.js3
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