Backbone.Subviews renders before subview fetches collection
This question concerns either an issue with BB.Subviews and me not knowing
how to control when it renders the subview, or my code is designed
incorrectly. My issue is one of my subviews fetches it's own collection of
models. It then (is supposed to) renders this collection of models. My
console.log lines show me that BB.subviews is rendering the child before
it has finished fetching it's collection. Is there a BB.subview setting
I'm not seeing in the instructions or is my design bad and I should be
fetching the collection for the child and passing it in? The latter would
work but seems wrong to me.
In my older code (pre BB.subviews) the child subview called it's own
render after it had finished fetching it's collection. I can't do this
with BB.subviews.
No comments:
Post a Comment