mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
fix nested timegraph
This commit is contained in:
parent
9c9f64d36b
commit
1dfb6ebfe6
@ -61,10 +61,10 @@ if(typeof window === "undefined"){ //Not in the browser, Include from node
|
||||
var root = gun.back(-1), tmp;
|
||||
(opt = Gun.num.is(opt)? {last: opt} : opt || {}).seen = opt.seen || {};
|
||||
var t = now();
|
||||
gun.on(function(msg, ev){
|
||||
var at = msg.$._, id = at.link || at.soul || Gun.node.soul(msg.put);
|
||||
gun.on(function(data, key, msg, eve){
|
||||
var at = msg.$._, id = at.link || at.soul || Gun.node.soul(data);
|
||||
if(!id){ return }
|
||||
if(false === opt.next){ ev.off() }
|
||||
if(false === opt.next){ eve.off() }
|
||||
else { opt.next = true }
|
||||
opt.start = [opt.id = id].concat(t);
|
||||
opt.low = opt.low || opt.start;
|
||||
|
Loading…
x
Reference in New Issue
Block a user