Why not just append all of the views in TableView render, and then have TableRowView set its own ID in its initialize or render method?
I think that would be more concise and straightforward.
I think that would be more concise and straightforward.
I guess the advantage is that re-rendering the parent will re-render the subviews instead of re-creating them? Unless you need that, it seems to me like this is a lot of mess compared to just adding @$el.attr 'id', "row_#{@model.id}" to the child view.