HenrikJoreteg / human-view

A smart base view for Backbone apps, to make it easy to bind collections and properties to the DOM.
33 stars 6 forks source link

Decide on a good way to handle subviews to make sure they get removed when the view is destroyed. #7

Closed HenrikJoreteg closed 10 years ago

HenrikJoreteg commented 10 years ago

We currently do something like this for renderCollection: https://github.com/HenrikJoreteg/human-view/blob/master/human-view.js#L193-L194

But this could be more generic and let you use it for simple subviews too.

HenrikJoreteg commented 10 years ago

@Crossdiver propsed this: https://gist.github.com/Crossdiver/f8bae19a612f8888a487 I kind of it. Seems like worthwhile concepts to merge.