const TT_UNDERSCORE = TT.UNDERSCORE
const TT_DOT = TT.DOT
- function MENTION (value: any) {
+ function MENTION (this: any, value: any) {
this.v = value
}
const self = this
this.zone.runOutsideAngular(async () => {
- videojs(this.playerElement, videojsOptions, function () {
+ videojs(this.playerElement, videojsOptions, function (this: videojs.Player) {
self.player = this
this.on('customError', ({ err }: { err: any }) => self.handleError(err))
{
label: player.localize('Copy the video URL at the current time'),
listener: function () {
- const player = this
+ const player = this as Player
copyToClipboard(buildVideoLink(player.currentTime()))
}
},
{
label: player.localize('Copy magnet URI'),
listener: function () {
- const player = this
+ const player = this as Player
copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri)
}
}
}
addMenuItem (entry: any, options: any) {
- const openSubMenu = function () {
+ const openSubMenu = function (this: any) {
if (videojsUntyped.dom.hasClass(this.el_, 'open')) {
videojsUntyped.dom.removeClass(this.el_, 'open')
} else {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noImplicitAny": true,
+ "noImplicitThis": true,
"suppressImplicitAnyIndexErrors":true,
"alwaysStrict": true,
"target": "es5",