summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/model/graph.js3
-rw-r--r--scripts/rz_core.js3
-rw-r--r--scripts/textanalysis.js3
3 files changed, 8 insertions, 1 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,
diff --git a/scripts/rz_core.js b/scripts/rz_core.js
index 3a55839c..c3462b2e 100644
--- a/scripts/rz_core.js
+++ b/scripts/rz_core.js
@@ -677,7 +677,8 @@ function customColor(type) {
color = "rgba(0,0,0,0.2)";
break;
default:
- size = '#080808';
+ console.log('bug: unknown type ' + type);
+ color = '#080808';
break;
}
return color;
diff --git a/scripts/textanalysis.js b/scripts/textanalysis.js
index 2465a3ab..e5729ef3 100644
--- a/scripts/textanalysis.js
+++ b/scripts/textanalysis.js
@@ -163,6 +163,9 @@ var textAnalyser = function (newtext, finalize) {
START = "START";
function addNode(name, type, state) {
+ if (type === undefined) {
+ console.log('bug: textanalyser.addNode of type undefined');
+ }
ret.nodes.push({'name':name, 'type':type, 'state':state});
}
function addLink(src, dst, name, state) {