fluorjs / fluor

Sprinkle interactivity on your design
https://fluorjs.github.io/
223 stars 6 forks source link

Child molecules should have access to parent variables without using $parent #19

Open madx opened 4 years ago

madx commented 4 years ago

Currently a child molecule has to use the $parent notation to access variables defined in the parent scope. It would be more natural to have a direct access to parent variables, with the ability of shadowing a parent variable by declaring it in a child scope. Once shadowed, a parent variable would remain accessible through the $parent notation. This could probably be implemented by using a proxy for the data variable in createMolecule