connect function added to add the current node to the parent event dispatcher
[xynt.git] / xynt-link.js
index 3838372..12ae9c1 100644 (file)
@@ -38,7 +38,7 @@ function tasks_link(anc, a, b, type) {
         cur = (i == 0 ? a : b);
         cur.connected[cur.connected.length++] = this;
         for( ; cur.parentNode != null && cur.parentNode != anc ; cur = cur.parentNode) {
-            cur.parentNode.connected[cur.parentNode.connected.length++] = this;
+            cur.connect(this);
         }
     }
     this.update()