mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
clarity
This commit is contained in:
parent
f0287b11cb
commit
4ec64ade36
3
gun.js
3
gun.js
@ -761,7 +761,7 @@
|
||||
if(!ctx.and){
|
||||
cat.on('node', function(m){
|
||||
this.to.next(m);
|
||||
if(m !== ctx.map[m.get]){ return }
|
||||
if(m !== ctx.map[m.get]){ return } // filter out events not from this context!
|
||||
ctx.souls[m.get] = false;
|
||||
obj_map(m.put, aeach, m);
|
||||
if(obj_map(ctx.souls, function(v){ if(v){ return v } })){ return }
|
||||
@ -862,6 +862,7 @@
|
||||
ctx.on('node', function(msg){
|
||||
var to = this.to;
|
||||
//console.log(">>>", msg.put);
|
||||
//Gun.node.is(msg.put, function(v,k){ msg.put[k] = v + v });
|
||||
setTimeout(function(){
|
||||
//console.log("<<<<<", msg.put);
|
||||
to.next(msg);
|
||||
|
2
gun.min.js
vendored
2
gun.min.js
vendored
File diff suppressed because one or more lines are too long
@ -79,7 +79,7 @@ Gun._ = { // some reserved key words, these are not the only ones.
|
||||
if(u !== ctx.defer){
|
||||
setTimeout(function(){
|
||||
Gun.on.put(msg, gun);
|
||||
}, ctx.defer - at.machine);
|
||||
}, ctx.defer - ctx.machine);
|
||||
}
|
||||
if(!ctx.diff){ return }
|
||||
at.on('put', obj_to(msg, {put: ctx.diff}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user