mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
RAD * limit
This commit is contained in:
parent
c32a8f39ee
commit
848a244c39
@ -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 }
|
||||
}
|
||||
});
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user