foam-framework / foam

Feature-Oriented Active Modeller
Apache License 2.0
787 stars 55 forks source link

Should PropertyView subcontext with the correct data before creating the child view? #504

Open adamvy-google opened 8 years ago

adamvy-google commented 8 years ago

js/foam/u2/PropertyView.js:63

adamvy-google commented 8 years ago

If the child view imports data from the context, it will receive the incorrect data, and may even make a dynamic binding to it if it imports data$.

If data is going to be in the context, would it make more sense for the PropertyView to construct a sub-context with the appropriate data$ before constructing the view for child_