Closed johan-ohrn closed 4 years ago
Thanks Johan. I'll be travelling in the coming period (not sure yet quite how long), so I won't be able to investigate this until after my return. I'll try to get to it then...
Hi Johan. I managed to get to looking at this. Thanks for calling it out!
Here is a candidate fix:
It is a one-line fix on line 3321:
Path = allPath ? allPath + "." + relPath : allPath;
Let me know if that works for you...
Hi @johan-ohrn, did you look at this fix?
Sorry I have not. I'm struggling to remember my initial use case. I will have a look at it morrow and get back to you.
I can confirm that this fix work for my use case.
OK - thanks. I'll include it in the next update...
Fixed in v1.0.6
I've stumbled upon what I believe is a bug in the observable API when the path is set to "*".
Notice how path is set to [].a observeAll helper object is missing which is consistent with the documentation.
Notice how path is set to [].* observeAll helper object is there but its internal data seem to be corrupt. _path contains "undefined" and the .parents() method returns undefined. I'm not expecting the helper object because I'm not using a deep path, i.e. **.
Notice how path is set to [].** observeAll helper object is there and it's working. .parent() method returns correct object.