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

$(document).one() in event registration precludes reinitialization #97

Closed
karger opened this issue Oct 10, 2012 · 2 comments
Closed

$(document).one() in event registration precludes reinitialization #97

karger opened this issue Oct 10, 2012 · 2 comments

Comments

@karger
Copy link
Contributor

karger commented Oct 10, 2012

Exhibit uses events to trigger component initialization. Various scripts bind to an event while loading, using $(document).one("signaling event", response). This means that it is impossible to reinitialize theses scripts, since they only listen for one occurrence of the event. Would the be any drawback to a blanket replacement of .one() by .bind() so repeated triggerings could occur?

@karger
Copy link
Contributor Author

karger commented Oct 12, 2012

Consequence: calling Exhibit.create() twice produces a nonfunctioning exhibit.

@zepheiryan
Copy link
Member

Duplicates #92.

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