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 });