mirror of
https://github.com/amark/gun.git
synced 2025-06-06 06:06:50 +00:00
put now accepts refs again
This commit is contained in:
parent
347ac0ff37
commit
05bb232d4d
9
gun.js
9
gun.js
@ -1142,6 +1142,15 @@
|
||||
ify(as);
|
||||
return gun;
|
||||
}
|
||||
if(Gun.is(data)){
|
||||
data.any(function(e,d,k,at,ev){
|
||||
ev.off();
|
||||
var s = Gun.node.soul(d);
|
||||
if(!s){Gun.log("Can only save a node, not a property.");return}
|
||||
gun.put(Gun.val.rel.ify(s), cb, opt);
|
||||
});
|
||||
return gun;
|
||||
}
|
||||
as.ref = as.ref || (root === (tmp = gun.Back(1)))? gun : tmp;
|
||||
as.ref.any(any, {as: as, '.': null});
|
||||
if(!as.out){
|
||||
|
Loading…
x
Reference in New Issue
Block a user