recipeswithbackbone / recipeswithbackbone.github.com

Marketing site for the best damn backbone.js book evar
23 stars 1 forks source link

Update insert on collection.fetch() #50

Open chchrist opened 12 years ago

chchrist commented 12 years ago

Hello and thank you for the great book!

In the fill - in pattern you describe how to update the model. What if we have a collection and we call fetch() from the server every x amount of time. For example I have a lobby that updates the games every 5 seconds. How would update only the models that have changes and insert new ones? Is it possible and if yes could you write a recipe for this?

Thanks!