Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_bindContainerEvents() {
if (this._oldContainer) {
this.stopListening(this._oldContainer, Events.CONTAINER_TIMEUPDATE, this._onTimeUpdate)
this.stopListening(this._oldContainer, Events.CONTAINER_MEDIACONTROL_SHOW, this._onMediaControlShow)
}
this._oldContainer = this.core.mediaControl.container
this.listenTo(this.core.mediaControl.container, Events.CONTAINER_TIMEUPDATE, this._onTimeUpdate)
this.listenTo(this.core.mediaControl.container, Events.CONTAINER_MEDIACONTROL_SHOW, this._onMediaControlShow)
}
_bindContainerEvents() {
if (this._oldContainer) {
this.stopListening(this._oldContainer, Events.CONTAINER_TIMEUPDATE, this._renderPlugin)
}
this._oldContainer = this.core.mediaControl.container
this.listenTo(this.core.mediaControl.container, Events.CONTAINER_TIMEUPDATE, this._renderPlugin)
}