From 06c44c60cecc1af4204d6480c94b77ba27c79b7e Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 12 May 2015 12:18:09 +0300 Subject: client/model/graph: add activityBus Very similar to Diff Bus, just includes initial clone commits. Will remove it in the future. --- src/client/model/graph.js | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') diff --git a/src/client/model/graph.js b/src/client/model/graph.js index 99c63886..aa3f3b51 100644 --- a/src/client/model/graph.js +++ b/src/client/model/graph.js @@ -14,6 +14,7 @@ function Graph(spec) { id_to_link_map, id_to_link_id_set, diffBus = new Bacon.Bus(), + activityBus = new Bacon.Bus(), cached_links, invalidate_links = true, cached_nodes, @@ -34,6 +35,10 @@ function Graph(spec) { // bus contains the server events, not the user events (most of the time the same just with delay). this.diffBus = diffBus; + // Same as diffBus, but includes operations done in the past, loaded when + // the document is loaded (commit log) + this.activityBus = activityBus; + var links_forEach = function (f) { for (var link_key in id_to_link_map) { f(id_to_link_map[link_key]); -- cgit v1.3.1