News for hackers. Stuff that matters.
Re:An Intro to Backbone.js: Part 3 - Binding a Collection to... by samg_ on Thursday February 17, 2011 @12:20PM (#2231762)
I didn't meant to say that Donut was itself a mapping from data to representation, just that there is some kind of mapping somewhere. I absolutely agree that Donut should not be concerned with its representation(s).

In Flex, this is managed by a 2-part view consisting of the collection view (List) and the item view (ItemRenderer). When creating the List you pass it its data provider (oft. ArrayCollection) and its ItemRenderer.

Perhaps this example could benefit from a similar separation.

There are no comments on this comment yet.