diff options
Diffstat (limited to 'src/model/graph.js')
| -rw-r--r-- | src/model/graph.js | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/model/graph.js b/src/model/graph.js index 44628447..6d13a83e 100644 --- a/src/model/graph.js +++ b/src/model/graph.js @@ -3,6 +3,8 @@ define(['signal', 'consts', 'util', 'model/core', 'model/util', 'rz_api_backend', 'rz_api_mesh'], function (signal, consts, util, model_core, model_util, rz_api_backend, rz_api_mesh) { +var debug = false; + function Graph() { var nodes = [], @@ -34,11 +36,12 @@ function Graph() { return; }else{ node = model_core.create_node__set_random_id(node); - // TODO clean - if ('bubble' == node.type){ - console.debug('__addNode: stamping node id: ' + node.id + ', name: \'' + node.name + '\' (bubble)'); - }else { - console.debug('__addNode: stamping node id: ' + node.id + ', name: \'' + node.name + '\''); + if (debug) { + if ('bubble' == node.type){ + console.debug('__addNode: stamping node id: ' + node.id + ', name: \'' + node.name + '\' (bubble)'); + }else { + console.debug('__addNode: stamping node id: ' + node.id + ', name: \'' + node.name + '\''); + } } } } |
