summaryrefslogtreecommitdiff
path: root/scripts/model/graph.js
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2014-11-11 12:58:56 +0200
committerAlon Levy <alon@pobox.com>2014-11-11 12:58:56 +0200
commit28b944d2500a6ca38c17aa3ba7d7aad166b7ce07 (patch)
treefbb3a6a20b4e3e4f89bddcc8d00fd0a1f24b7d74 /scripts/model/graph.js
parent52746e7e4bda6a118cb78622dfe2948c543b6264 (diff)
add some console bug logs where preconditions are wrong (oh, eiffel..)
Diffstat (limited to 'scripts/model/graph.js')
-rw-r--r--scripts/model/graph.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js
index 665b0a87..34f778c2 100644
--- a/scripts/model/graph.js
+++ b/scripts/model/graph.js
@@ -21,6 +21,9 @@ function Graph(el) {
///FUNCTIONS
this.addNode = function(name, type, state) {
+ if (type === undefined) {
+ console.log('bug: adding undefined type');
+ }
var new_node = this._addNodeNoHistory(
{name:name,
type:type,