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

Support repeated component registration. #92

Closed
karger opened this issue Oct 7, 2012 · 4 comments
Closed

Support repeated component registration. #92

karger opened this issue Oct 7, 2012 · 4 comments

Comments

@karger
Copy link
Contributor

karger commented Oct 7, 2012

the registerComponents.exhibit event is triggered to signal components to register themselves.
However, the listeners are all set up to trigger only once, ie $(doc).one("registerComponents.exhibit")
Thus, if a new (second) exhibit is created, it fails to register its components

@zepheiryan
Copy link
Member

By its original design Exhibit expects to only show one exhibit on a page. This is not the only obstacle to changing that behavior. That feature is probably better served by its own pull request / issue.

@karger
Copy link
Contributor Author

karger commented Aug 16, 2013

Indeed, showing more than one exhibit on a page creates complexity. However, reinitializing that one exhibit is a natural call for plausible usages of exhibit---for example, exhibit editing.

@szechyjs
Copy link

Any suggestions on how to reinitialize exhibit? I'm using exhibit in an ember.js app and the entire page doesn't reload on page changes.

simile-widgets/exhibit#124

@karger
Copy link
Contributor Author

karger commented Feb 23, 2015

Depending on what you need to reinitialize,
window.exhibit.configureFromDOM() will rerender the exhibit without
reloading the data. You can also throw away the whole exhibit and
recreate the database and load the date afresh; see the autoCreate
function in exhibit.js in the scripts directory of exhibit.

On 2/23/2015 3:03 PM, Jared Szechy wrote:

Any suggestions on how to reinitialize exhibit? I'm using exhibit in
an ember.js app and the entire page doesn't reload on page changes.

simile-widgets/exhibit#124
simile-widgets/exhibit#124


Reply to this email directly or view it on GitHub
#92 (comment).

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