You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if a bug or feature request really but I believe the title & my simplified jsFiddle Example explains my predicament.
Basically I am dealing with an extremely large & multidimensional observer object containing folders & files, all of which have dynamic property names.
When it comes to using the Observer setProperty() function, I am struggling to find a way to use this on properties with a dot in the name such as "file.png". This is obviously because when the full stop appears in the set property path JSViews believes it to be a step deeper in the object tree.
Aka:
path.fileWithoutExt.attrs = Works.
path.fileWithExt.png.attrs = Fails.
So my question is "Is there a way to achieve property setting, or is it not possible/feature request/bug?" Could it be something like:
Not sure if a bug or feature request really but I believe the title & my simplified jsFiddle Example explains my predicament.
Basically I am dealing with an extremely large & multidimensional observer object containing folders & files, all of which have dynamic property names.
When it comes to using the Observer
setProperty()
function, I am struggling to find a way to use this on properties with a dot in the name such as "file.png". This is obviously because when the full stop appears in the set property path JSViews believes it to be a step deeper in the object tree.Aka:
path.fileWithoutExt.attrs
= Works.path.fileWithExt.png.attrs
= Fails.So my question is "Is there a way to achieve property setting, or is it not possible/feature request/bug?" Could it be something like:
root.path["file.dot"].more
or:
root.path.{{file.dot}}.more
Thanks in advanced for any help!
The text was updated successfully, but these errors were encountered: