Skip to content
This repository has been archived by the owner on May 17, 2018. It is now read-only.

client mode update collection when model is removed from server #132

Closed
solidstudio opened this issue Dec 16, 2013 · 3 comments
Closed

client mode update collection when model is removed from server #132

solidstudio opened this issue Dec 16, 2013 · 3 comments

Comments

@solidstudio
Copy link

Hi i'm having the following problem, when I remove a model from a collection using model.destroy the current pageable page doesn't correctly update so that it correctly renders the current page with the model removed and another model from the next page added in its place. To fix this I call this.collection.remove(view.model); before model.destroy has returned, but how can I avoid this?

Thanks

@wyuenho
Copy link
Member

wyuenho commented Dec 19, 2013

Can you produce a test case / jsfiddle?

@wyuenho
Copy link
Member

wyuenho commented Dec 19, 2013

Nvm. Found the bug.

@wyuenho
Copy link
Member

wyuenho commented Dec 19, 2013

Are you always removing from the front of the current page? Removing from the end of the current page seems fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants