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

Fix for player not rendering on computed videoId #12

Merged
merged 1 commit into from
Dec 19, 2016

Conversation

EenvoudJasper
Copy link
Contributor

When I have the videoId as a computed value, your watcher tries update the player. But I think the player is not ready yet because it throuws an JS error:
[Vue warn]: Error in watcher "videoId"
TypeError: this.player[name] is not a function

This small fix 'listens' for the property to exist on the player and then runs it

When I have the videoId as a computed value, your watcher tries update the player. But I think the player is not ready yet because it throuws an JS error:
[Vue warn]: Error in watcher "videoId"
TypeError: this.player[name] is not a function

This small fix 'listens' for the property to exist on the player and then runs it
@kaorun343
Copy link
Owner

Thanks!
I'll merge this.

@kaorun343 kaorun343 merged commit 5f99220 into kaorun343:master Dec 19, 2016
kaorun343 added a commit that referenced this pull request Dec 19, 2016
* support both Vue.js 1.x and 2.x
* fix event name
* fix issue by #12
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