resthub / resthub-backbone-stack

RESThub Backbone.js stack
http://resthub.org/docs/backbone/
Other
56 stars 26 forks source link

Resthub.View invalid render behaviour using Paginator #146

Open artemenko89 opened 10 years ago

artemenko89 commented 10 years ago

When we use Backbone collection with Backbone Paginator we don't initialise each time: https://github.com/resthub/resthub-backbone-stack/blob/master/js/lib/resthub/resthub.js line: 498-516 - we just extend existing context. For example if we had 7 items in collection, but we got 1 from response ( use {reset: true} in fetch) - it just replace 1 first item with new data. It should rewrite data or check for strategy of fetching.