loicfrering / backbone.datagrid

A powerful component, based on Backbone.View, that displays your Backbone collections in a dynamic datagrid table.
http://loicfrering.github.io/backbone.datagrid/
MIT License
55 stars 14 forks source link

error when paginating #5

Closed caroljmcdonald closed 11 years ago

caroljmcdonald commented 11 years ago

when I run the github search example and click on next , then I get the following error, backbone.sync is called twice http://localhost:8383/backbone/examples/function%20()%20%7B%20%20%20%20%20%20var%20base%20=%20_.result(this,%20'urlRoot')%20%7C%7C%20_.result(this.collection,%20'url')%20%7C%7C%20urlError();%20%20%20%20%20%20if%20(this.isNew())%20return%20base;%20%20%20%20%20%20return%20base%20+%20(base.charAt(base.length%20-%201)%20===%20'/'%20?%20''%20:%20'/')%20+%20encodeURIComponent(this.id);%20%20%20%20}&per_page=10&page=2

loicfrering commented 11 years ago

Hi, this issue was fixed in 7f448c383023fb2fb17b0e74d176a11de10a8012. You can update to 0.3.2 which I just released to get the fix.

Thanks for reporting!