fix nested timegraph

This commit is contained in:
Mark Nadal 2018-06-29 17:26:10 -07:00
parent 9c9f64d36b
commit 1dfb6ebfe6

View File

@ -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;