From 3ab619799a460085f46321dea1507377831f58ca Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 31 Jan 2021 01:34:43 +0100 Subject: [PATCH] fix pt 3 --- src/ext/lib/video-data/PlayerData.js | 3 +-- src/ext/lib/video-transform/Stretcher.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ext/lib/video-data/PlayerData.js b/src/ext/lib/video-data/PlayerData.js index 620eec1..51de27e 100644 --- a/src/ext/lib/video-data/PlayerData.js +++ b/src/ext/lib/video-data/PlayerData.js @@ -115,8 +115,7 @@ class PlayerData { } try { - const ths = this; - this.observer = new MutationObserver((m,o) => this.onPlayerDimensionsChanged(m,o,this).bind(this)); + this.observer = new MutationObserver((m,o) => this.onPlayerDimensionsChanged(m,o,this)); const observerConf = { attributes: true, diff --git a/src/ext/lib/video-transform/Stretcher.js b/src/ext/lib/video-transform/Stretcher.js index dde5657..53efd31 100644 --- a/src/ext/lib/video-transform/Stretcher.js +++ b/src/ext/lib/video-transform/Stretcher.js @@ -1,5 +1,6 @@ import Stretch from '../../../common/enums/stretch.enum'; import BrowserDetect from '../../conf/BrowserDetect'; +import AspectRatio from '../../../common/enums/aspect-ratio.enum'; // računa vrednosti za transform-scale (x, y) // transform: scale(x,y) se uporablja za raztegovanje videa, ne pa za približevanje