mirror of
https://github.com/amark/gun.git
synced 2025-07-08 05:42:38 +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;
|
var root = gun.back(-1), tmp;
|
||||||
(opt = Gun.num.is(opt)? {last: opt} : opt || {}).seen = opt.seen || {};
|
(opt = Gun.num.is(opt)? {last: opt} : opt || {}).seen = opt.seen || {};
|
||||||
var t = now();
|
var t = now();
|
||||||
gun.on(function(msg, ev){
|
gun.on(function(data, key, msg, eve){
|
||||||
var at = msg.$._, id = at.link || at.soul || Gun.node.soul(msg.put);
|
var at = msg.$._, id = at.link || at.soul || Gun.node.soul(data);
|
||||||
if(!id){ return }
|
if(!id){ return }
|
||||||
if(false === opt.next){ ev.off() }
|
if(false === opt.next){ eve.off() }
|
||||||
else { opt.next = true }
|
else { opt.next = true }
|
||||||
opt.start = [opt.id = id].concat(t);
|
opt.start = [opt.id = id].concat(t);
|
||||||
opt.low = opt.low || opt.start;
|
opt.low = opt.low || opt.start;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user