mirror of
https://github.com/amark/gun.git
synced 2026-02-21 03:03:12 +00:00
refactor
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user