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

Better way to load Behaviors #20

Closed
roperzh opened this issue Jun 7, 2014 · 0 comments · Fixed by #23
Closed

Better way to load Behaviors #20

roperzh opened this issue Jun 7, 2014 · 0 comments · Fixed by #23
Assignees
Milestone

Comments

@roperzh
Copy link
Owner

roperzh commented Jun 7, 2014

Currently if you change some contents in the page ( loaded via AJAX for instance ) there is no semantic way to initialize the behaviors attached to the new contents, one way could be doing something like this:

Essential.rootElement = elWithNewContents;

Essential.start(App);

The idea is provide a method to load new contents, which can accept a custom domElement for instance:

Essential.loadBehaviors(App, elWithNewContents);

Ideally Essential.start would be using this method

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

Successfully merging a pull request may close this issue.

1 participant