summaryrefslogtreecommitdiff
path: root/src/client/model
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-01-06 21:48:38 +0200
committerAlon Levy <alon@pobox.com>2015-01-06 21:48:38 +0200
commitfb56d907c05ee04a9fcc101a938b0505d235d255 (patch)
treeca1aea6452af390ca25d9d4e896650b1e5663f00 /src/client/model
parent0d2d7f1992fcf7dc48a7f905627b1288744f5513 (diff)
client/model/graph: silence debug print
Diffstat (limited to 'src/client/model')
-rw-r--r--src/client/model/graph.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/model/graph.js b/src/client/model/graph.js
index e5d40b5b..deb40c22 100644
--- a/src/client/model/graph.js
+++ b/src/client/model/graph.js
@@ -152,7 +152,9 @@ function Graph(spec) {
util.assert(undefined != node.id, '__addNode: node id missing');
_node_add_helper(node);
- console.log('__addNode: node added: id: ' + node.id + ' state ' + node.state);
+ if (debug) {
+ console.log('__addNode: node added: id: ' + node.id + ' state ' + node.state);
+ }
return node;
}