Improved behaviour on self references
Change-Id: I27c25be708c13f435f5cdd6d89f51213df8b79df
diff --git a/dev/demo/relationsdemo.js b/dev/demo/relationsdemo.js
index 0ffbc8a..a84bfeb 100644
--- a/dev/demo/relationsdemo.js
+++ b/dev/demo/relationsdemo.js
@@ -158,6 +158,7 @@
.addRel({ start: [2,4], end: 5, label: "e", direction: "uni" })
.addRel({ start: [5,6], end: 7, direction: "uni" })
.addRel({ start: 4, end: [6,8], label: "f", direction: "bi" })
+ .addRel({ start: 8, end: 8, label: "self", direction: "uni"})
;
document.getElementById("treeRel").appendChild(rel.element());
@@ -165,12 +166,13 @@
// Todo: Probably rename to rel.draw()
rel.show();
+ /*
var rel2 = relClass.create(relSnippet);
document.getElementById("treeRel2").appendChild(rel2.element());
rel2.show();
-
var tree = treeClass.create(treeSnippet);
document.getElementById("treeHier").appendChild(tree.element());
+ */
});