From 03970db20f64e33e829d9fc9277395241d1fde31 Mon Sep 17 00:00:00 2001 From: Oliver Foster Date: Fri, 29 Apr 2022 10:17:12 +0100 Subject: [PATCH] issue/2799 Removed redundant behaviour (#20) --- js/YouTubeView.js | 4 ++-- js/adapt-youtube.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/YouTubeView.js b/js/YouTubeView.js index ed909ff..03f9ba7 100644 --- a/js/YouTubeView.js +++ b/js/YouTubeView.js @@ -1,7 +1,7 @@ import a11y from 'core/js/a11y'; import Adapt from 'core/js/adapt'; +import logging from 'core/js/logging'; import ComponentView from 'core/js/views/componentView'; -import log from 'core/js/logging'; export default class YouTubeView extends ComponentView { @@ -24,7 +24,7 @@ export default class YouTubeView extends ComponentView { this.debouncedTriggerGlobalEvent = _.debounce(this.triggerGlobalEvent.bind(this), 1000); if (window.onYouTubeIframeAPIReady !== undefined) return; window.onYouTubeIframeAPIReady = () => { - log.info('YouTube iframe API loaded'); + logging.info('YouTube iframe API loaded'); Adapt.youTubeIframeAPIReady = true; Adapt.trigger('youTubeIframeAPIReady'); }; diff --git a/js/adapt-youtube.js b/js/adapt-youtube.js index 5d681bc..125b0e5 100644 --- a/js/adapt-youtube.js +++ b/js/adapt-youtube.js @@ -1,8 +1,8 @@ -import Adapt from 'core/js/adapt'; +import components from 'core/js/components'; import ComponentModel from 'core/js/models/componentModel'; import YouTubeView from './YouTubeView'; -export default Adapt.register('youtube', { +export default components.register('youtube', { model: ComponentModel.extend({}), view: YouTubeView });