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

Make Elemental.load() accept HTML with multiple root nodes. #16

Merged
merged 1 commit into from Nov 2, 2013

Conversation

pivotal-wave
Copy link

This allows you to do:

Elemental.load('<div data-behavior="hi"></div>  <div data-behavior="bye"></div>');

Before you could only have a data-behavior on the only root level element.

If you upgrade to jQuery 1.8, then line 32 of src/elemental.js could become:

var $selector =  $('[data-behavior]', container).andSelf('[data-behavior]');

robb1e added a commit that referenced this pull request Nov 2, 2013
Make Elemental.load() accept HTML with multiple root nodes.
@robb1e robb1e merged commit 08a901a into elementaljs:master Nov 2, 2013
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

Successfully merging this pull request may close these issues.

None yet

2 participants