This commit is contained in:
Mark Nadal 2018-02-03 13:06:06 -08:00
parent f0287b11cb
commit 4ec64ade36
3 changed files with 4 additions and 3 deletions

3
gun.js
View File

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

File diff suppressed because one or more lines are too long

View File

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