This commit is contained in:
Sam Potts
2017-11-05 01:13:00 +11:00
parent 3cd6c2acf6
commit 8aaa932050
7 changed files with 19 additions and 17 deletions

View File

@ -7,7 +7,6 @@ import captions from './../captions';
import ui from './../ui';
const vimeo = {
// Setup YouTube
setup() {
// Remove old containers
const containers = utils.getElements.call(this, `[id^="${this.type}-"]`);
@ -34,7 +33,7 @@ const vimeo = {
}
},
// Ready
// API Ready
ready() {
const player = this;

View File

@ -7,7 +7,6 @@ import controls from './../controls';
import ui from './../ui';
const youtube = {
// Setup YouTube
setup() {
const videoId = utils.parseYouTubeId(this.embedId);
@ -45,7 +44,7 @@ const youtube = {
}
},
// Handle YouTube API ready
// API ready
ready(videoId) {
const player = this;