add noImplicitThis flag (#1324)
This commit is contained in:
parent
fa27f07637
commit
951ef8294e
|
@ -41,7 +41,7 @@ export class LinkifierService {
|
||||||
const TT_UNDERSCORE = TT.UNDERSCORE
|
const TT_UNDERSCORE = TT.UNDERSCORE
|
||||||
const TT_DOT = TT.DOT
|
const TT_DOT = TT.DOT
|
||||||
|
|
||||||
function MENTION (value: any) {
|
function MENTION (this: any, value: any) {
|
||||||
this.v = value
|
this.v = value
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -435,7 +435,7 @@ export class VideoWatchComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
const self = this
|
const self = this
|
||||||
this.zone.runOutsideAngular(async () => {
|
this.zone.runOutsideAngular(async () => {
|
||||||
videojs(this.playerElement, videojsOptions, function () {
|
videojs(this.playerElement, videojsOptions, function (this: videojs.Player) {
|
||||||
self.player = this
|
self.player = this
|
||||||
this.on('customError', ({ err }: { err: any }) => self.handleError(err))
|
this.on('customError', ({ err }: { err: any }) => self.handleError(err))
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,7 @@ function addContextMenu (player: any, videoEmbedUrl: string) {
|
||||||
{
|
{
|
||||||
label: player.localize('Copy the video URL at the current time'),
|
label: player.localize('Copy the video URL at the current time'),
|
||||||
listener: function () {
|
listener: function () {
|
||||||
const player = this
|
const player = this as Player
|
||||||
copyToClipboard(buildVideoLink(player.currentTime()))
|
copyToClipboard(buildVideoLink(player.currentTime()))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -226,7 +226,7 @@ function addContextMenu (player: any, videoEmbedUrl: string) {
|
||||||
{
|
{
|
||||||
label: player.localize('Copy magnet URI'),
|
label: player.localize('Copy magnet URI'),
|
||||||
listener: function () {
|
listener: function () {
|
||||||
const player = this
|
const player = this as Player
|
||||||
copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri)
|
copyToClipboard(player.peertube().getCurrentVideoFile().magnetUri)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -182,7 +182,7 @@ class SettingsButton extends Button {
|
||||||
}
|
}
|
||||||
|
|
||||||
addMenuItem (entry: any, options: any) {
|
addMenuItem (entry: any, options: any) {
|
||||||
const openSubMenu = function () {
|
const openSubMenu = function (this: any) {
|
||||||
if (videojsUntyped.dom.hasClass(this.el_, 'open')) {
|
if (videojsUntyped.dom.hasClass(this.el_, 'open')) {
|
||||||
videojsUntyped.dom.removeClass(this.el_, 'open')
|
videojsUntyped.dom.removeClass(this.el_, 'open')
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"noImplicitAny": true,
|
"noImplicitAny": true,
|
||||||
|
"noImplicitThis": true,
|
||||||
"suppressImplicitAnyIndexErrors":true,
|
"suppressImplicitAnyIndexErrors":true,
|
||||||
"alwaysStrict": true,
|
"alwaysStrict": true,
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
|
|
Loading…
Reference in New Issue