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