From f44487338dec72b6eee63874f70bf717c19d7c29 Mon Sep 17 00:00:00 2001 From: HirokiUchikawa Date: Wed, 6 Jun 2018 18:46:32 +0900 Subject: [PATCH] Fix a wrong statement --- red/runtime/nodes/context/memory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/red/runtime/nodes/context/memory.js b/red/runtime/nodes/context/memory.js index 422b1b9f2..74a8a4380 100644 --- a/red/runtime/nodes/context/memory.js +++ b/red/runtime/nodes/context/memory.js @@ -77,7 +77,7 @@ Memory.prototype.clean = function(activeNodes){ for(var id in this.data){ if(this.data.hasOwnProperty(id) && id !== "global"){ var idParts = id.split(":"); - if(!activeNodes.indexOf(idParts[0])){ + if(activeNodes.indexOf(idParts[0]) === -1){ delete this.data[id]; } }