mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
add set back in for @stefdv
This commit is contained in:
parent
05bb232d4d
commit
f748ef0308
12
gun.js
12
gun.js
@ -2008,6 +2008,18 @@
|
||||
return this.Back(-1).put(Gun.node.ify({}, this._.get), null, this._.get);
|
||||
}
|
||||
}());
|
||||
|
||||
;(function(){
|
||||
Gun.chain.set = function(item, cb, opt){
|
||||
var gun = this;
|
||||
cb = cb || function(){};
|
||||
return item.val(function(node){
|
||||
var put = {}, soul = Gun.node.soul(node);
|
||||
if(!soul){ return cb.call(gun, {err: Gun.log('Only a node can be linked! Not "' + node + '"!')}) }
|
||||
gun.put(Gun.obj.put(put, soul, Gun.val.rel.ify(soul)), cb, opt);
|
||||
});
|
||||
}
|
||||
}());
|
||||
})(require, './src/api');
|
||||
|
||||
}());
|
||||
|
Loading…
x
Reference in New Issue
Block a user