Skip to content

Commit

Permalink
issue/2799 Removed redundant behaviour (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverfoster authored Apr 29, 2022
1 parent a5139d8 commit 03970db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions js/YouTubeView.js
Original file line number Diff line number Diff line change
@@ -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 {

Expand All @@ -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');
};
Expand Down
4 changes: 2 additions & 2 deletions js/adapt-youtube.js
Original file line number Diff line number Diff line change
@@ -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
});

0 comments on commit 03970db

Please sign in to comment.