mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
refactor
This commit is contained in:
parent
6464247d9c
commit
9ef86da07b
@ -6,6 +6,7 @@ Gun.on('opt', function(ctx){
|
||||
ctx.on('put', function(msg){
|
||||
Gun.graph.is(msg.put, null, function(val, key, node, soul){
|
||||
if(null !== val){ return }
|
||||
// TODO: Refactor this to use `.off()`?
|
||||
var tmp = ctx.graph[soul];
|
||||
if(tmp){
|
||||
delete tmp[key];
|
||||
|
Loading…
x
Reference in New Issue
Block a user