1
0
mirror of https://github.com/flarum/core.git synced 2025-08-05 16:07:34 +02:00

common: mark some ModalManager methods/properties as protected

This commit is contained in:
David Sevilla Martin
2020-02-01 08:39:13 -05:00
parent 3410bf0935
commit f22f4c02e6

View File

@@ -10,7 +10,7 @@ import { Vnode } from 'mithril';
* overwrite the previous one.
*/
export default class ModalManager extends Component {
private node: Vnode;
protected node: Vnode;
showing: boolean;
hideTimeout: number;
@@ -89,10 +89,8 @@ export default class ModalManager extends Component {
/**
* Clear content from the modal area.
*
* @protected
*/
clear() {
protected clear() {
if (this.component) {
this.component.onhide();
}
@@ -106,11 +104,9 @@ export default class ModalManager extends Component {
/**
* When the modal dialog is ready to be used, tell it!
*
* @protected
*/
onready() {
if (this.component?.onready) {
protected onready() {
if (this.component) {
this.component.onready();
}
}