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

Pass DOM node to YouTube Player instead of ID #111

Merged
merged 1 commit into from
Oct 6, 2016

Conversation

jsibelman
Copy link
Contributor

Our use case involves loading the player as part of a component in an iframe, so using getElementById fails. Changing it to use the node has the side benefit of making the component a little more flexible, since now the id isn't required, and subsequently there's no need for tracking unique ids, and it avoids id collisions on the outside chance someone might not be cautious about their naming.

@cookpete
Copy link
Owner

cookpete commented Oct 6, 2016

I didn't know you could do this. Much better! Thanks for the PR.

@cookpete cookpete merged commit b04fa4a into cookpete:master Oct 6, 2016
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