From b4b70a988ee10da5386529b80a2b5c0027f547ad Mon Sep 17 00:00:00 2001 From: Hiroki Uchikawa Date: Fri, 16 Mar 2018 06:06:06 +0900 Subject: [PATCH] Change delimiter to "_" from ":" --- red/runtime/nodes/context/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/red/runtime/nodes/context/index.js b/red/runtime/nodes/context/index.js index b63aedb17..cd78f25de 100644 --- a/red/runtime/nodes/context/index.js +++ b/red/runtime/nodes/context/index.js @@ -72,7 +72,7 @@ function createContext(id,seed) { function getContext(localId,flowId) { var contextId = localId; if (flowId) { - contextId = localId+":"+flowId; + contextId = localId+"_"+flowId; } if (contexts.hasOwnProperty(contextId)) { return contexts[contextId]; @@ -91,7 +91,7 @@ function getContext(localId,flowId) { function deleteContext(id,flowId) { var contextId = id; if (flowId) { - contextId = id+":"+flowId; + contextId = id+"_"+flowId; } delete contexts[contextId]; } @@ -102,7 +102,7 @@ function clean(flowConfig) { var node; for (var id in contexts) { if (contexts.hasOwnProperty(id)) { - var idParts = id.split(":"); + var idParts = id.split("_"); if (!flowConfig.allNodes.hasOwnProperty(idParts[0])) { delete contexts[id]; }