From 9ef86da07b786d22b03579e2fc6febdc3fb89cb1 Mon Sep 17 00:00:00 2001 From: Mark Nadal Date: Sun, 25 Mar 2018 05:26:55 -0700 Subject: [PATCH] refactor --- lib/erase.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/erase.js b/lib/erase.js index 9fdf7222..5e5e6f74 100644 --- a/lib/erase.js +++ b/lib/erase.js @@ -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];