RAD * limit

This commit is contained in:
Mark Nadal 2019-02-10 20:44:12 -08:00
parent c32a8f39ee
commit 848a244c39

View File

@ -77,10 +77,12 @@ Gun.on('create', function(root){
has = (key+has).split(esc);
var soul = has.slice(0,1)[0];
has = has.slice(-1)[0];
opt.count = (opt.count || 0) + val.length;
tmp = val.lastIndexOf('>');
var state = Radisk.decode(val.slice(tmp+1), null, esc);
val = Radisk.decode(val.slice(0,tmp), null, esc);
(graph = graph || {})[soul] = Gun.state.ify(graph[soul], has, state, val, soul);
if(opt.limit && opt.limit <= opt.count){ return true }
}
});
});