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

Reset Exhibit #124

Open
szechyjs opened this issue Feb 9, 2015 · 3 comments
Open

Reset Exhibit #124

szechyjs opened this issue Feb 9, 2015 · 3 comments

Comments

@szechyjs
Copy link
Contributor

szechyjs commented Feb 9, 2015

I'm currently using exhibit in a single page ember application. Exhibit loads just fine the first time the page is viewed however when the page is revisited it no longer loads. I'm guessing I need to somehow reset exhibit so it will properly reload.

I tried doing Exhibit = undefined however it doesn't seem to completely reset things.

@szechyjs
Copy link
Contributor Author

szechyjs commented Feb 9, 2015

I've also tried exhibit.dispose(); and it errors out TypeError: this._registry.dispose is not a function

@karger
Copy link
Member

karger commented Dec 9, 2015

What kind of reset do you need? window.exhibit.configureFromDOM() will re-render the exhibit from scratch.

@szechyjs
Copy link
Contributor Author

szechyjs commented Jan 5, 2016

I'll have to revisit this. It was for a project in which I was using Exhibit inside several Ember.js views. Only the first view would render, and all other views/pages wouldn't render since ember was already loaded and it wasn't a true page change since its a single page app.

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

2 participants