add set back in for @stefdv

This commit is contained in:
Mark Nadal 2016-09-27 11:40:20 -07:00 committed by GitHub
parent 05bb232d4d
commit f748ef0308

12
gun.js
View File

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