Node id generation should only be done in runtime/util

This commit is contained in:
Nick O'Leary
2015-11-18 20:10:46 +00:00
parent 1ca3ca07d5
commit 35c4a41d7b
2 changed files with 16 additions and 6 deletions

View File

@@ -227,11 +227,6 @@ function Flow(global,flow) {
}
function getID() {
return (1+Math.random()*4294967295).toString(16);
}
var EnvVarPropertyRE = /^\$\((\S+)\)$/;
function mapEnvVarProperties(obj,prop) {
@@ -297,7 +292,7 @@ function createSubflow(sf,sfn,subflows,globalSubflows,activeNodes) {
var createNodeInSubflow = function(def) {
node = clone(def);
var nid = getID();
var nid = redUtil.generateId();
node_map[node.id] = node;
node._alias = node.id;
node.id = nid;