Skip to content

Instantly share code, notes, and snippets.

{
key: 'initVideo',
value: function (channel, opt, videoId) {
var functionName = channel.charAt(0).toUpperCase() + channel.slice(1).toLowerCase();
if (typeof this["init" + functionName] === "function") {
this["init" + functionName](opt, videoId);
}
}
},
{