bergie / VIE

Semantic Interaction Framework for JavaScript

Home Page:http://viejs.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deep relations: wrong type behavior

LaKrue opened this issue · comments

commented

Only the root type is matched correctly if annotated deep relation source is initially parsed.
Subtypes are not correctly recognized as such (at least not correctly).

Adding children after the initial parsing does work as expected, but only work from the root type.

Referring to my linked examples:

  • All buttons below "Level1-1" are hidden by default and no types are recognized
  • Starting from the button "Add Level1 child" all (sub)types works as expected

The following two examples are based on the VIE "deep relation" test case (see source).

commented

I just created example 1 on jsfiddle:
http://jsfiddle.net/LaKrue85/Pc9d9/

If you have the time, would be great to get some unit tests to demonstrate this. Makes fixing easier :-)