mirror of
https://github.com/discourse/DiscoTOC.git
synced 2026-10-01 05:43:56 -04:00
DEV: Update linting (#102)
This commit is contained in:
@@ -6,6 +6,11 @@ import DButton from "discourse/components/d-button";
|
||||
export default class TocMini extends Component {
|
||||
@service tocProcessor;
|
||||
|
||||
willDestroy() {
|
||||
super.willDestroy(...arguments);
|
||||
this.removeClickOutsideListener();
|
||||
}
|
||||
|
||||
@action
|
||||
clickOutside() {
|
||||
this.tocProcessor.setOverlayVisible(false);
|
||||
@@ -32,11 +37,6 @@ export default class TocMini extends Component {
|
||||
document.removeEventListener("click", this.clickOutside);
|
||||
}
|
||||
|
||||
willDestroy() {
|
||||
super.willDestroy(...arguments);
|
||||
this.removeClickOutsideListener();
|
||||
}
|
||||
|
||||
<template>
|
||||
{{#if this.tocProcessor.hasTOC}}
|
||||
<span class="d-toc-mini">
|
||||
|
||||
Reference in New Issue
Block a user