strict function work, #81574

This commit is contained in:
Rachel Macfarlane
2019-11-18 11:54:11 -08:00
parent 1f69cfa2aa
commit 642659c47d
3 changed files with 10 additions and 10 deletions

View File

@@ -345,8 +345,8 @@ export class IssueReporter extends Disposable {
const showInfoElements = document.getElementsByClassName('showInfo');
for (let i = 0; i < showInfoElements.length; i++) {
const showInfo = showInfoElements.item(i);
showInfo!.addEventListener('click', (e: MouseEvent) => {
const showInfo = showInfoElements.item(i)!;
(showInfo as HTMLAnchorElement).addEventListener('click', (e: MouseEvent) => {
e.preventDefault();
const label = (<HTMLDivElement>e.target);
if (label) {
@@ -432,9 +432,9 @@ export class IssueReporter extends Disposable {
sendWorkbenchCommand('workbench.action.reloadWindowWithExtensionsDisabled');
});
this.addEventListener('disableExtensions', 'keydown', (e: KeyboardEvent) => {
this.addEventListener('disableExtensions', 'keydown', (e: Event) => {
e.stopPropagation();
if (e.keyCode === 13 || e.keyCode === 32) {
if ((e as KeyboardEvent).keyCode === 13 || (e as KeyboardEvent).keyCode === 32) {
sendWorkbenchCommand('workbench.extensions.action.disableAll');
sendWorkbenchCommand('workbench.action.reloadWindow');
}