Event listener fixes, loadScript promise, ads tweaks

This commit is contained in:
Sam Potts
2018-03-11 02:03:35 +11:00
parent c734bc4957
commit e206edc1f6
25 changed files with 3559 additions and 3386 deletions

View File

@ -26,7 +26,7 @@ const ui = {
build() {
// Re-attach media element listeners
// TODO: Use event bubbling
listeners.media.call(this);
this.listeners.media();
// Don't setup interface if no support
if (!this.supported.ui) {
@ -45,7 +45,7 @@ const ui = {
controls.inject.call(this);
// Re-attach control listeners
listeners.controls.call(this);
this.listeners.controls();
}
// If there's no controls, bail