Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reset bindings? #453

Open
maxkoshel opened this issue Feb 22, 2015 · 2 comments
Open

How to reset bindings? #453

maxkoshel opened this issue Feb 22, 2015 · 2 comments

Comments

@maxkoshel
Copy link

I have some preloaded data and binded with rivets. Some of this data can generate dynamically new elements with binding. What is right way to reset (or reinitialize) bindings when new data appears?

@PierBover
Copy link

According to the guide:

Every call to rivets.bind returns a fully data-bound view that you should hold on to for later. You'll need it in order to unbind it's listeners using view.unbind().

@tayfunyugruk
Copy link

@maxkoshel do not forget to unbind the dynamc view when it's parent is removed programmatically.

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

No branches or pull requests

3 participants