bergie / VIE

Semantic Interaction Framework for JavaScript
http://viejs.org/
MIT License
303 stars 56 forks source link

Deep relations: wrong type behavior #156

Open LaKrue opened 11 years ago

LaKrue commented 11 years ago

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:

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

LaKrue commented 11 years ago

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

bergie commented 11 years ago

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