diff options
| author | Alon Levy <alon@pobox.com> | 2015-05-12 12:18:09 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-05-12 12:30:04 +0300 |
| commit | 06c44c60cecc1af4204d6480c94b77ba27c79b7e (patch) | |
| tree | c1cddf133eb1250de9514e15ef3883938a1a74f0 /src | |
| parent | 3ec9cadd4d7245e5b21604c2ed68ddee1124ca0d (diff) | |
client/model/graph: add activityBus
Very similar to Diff Bus, just includes initial clone commits. Will
remove it in the future.
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/model/graph.js | 5 |
1 files changed, 5 insertions, 0 deletions
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]); |
