1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +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. * overwrite the previous one.
*/ */
export default class ModalManager extends Component { export default class ModalManager extends Component {
private node: Vnode; protected node: Vnode;
showing: boolean; showing: boolean;
hideTimeout: number; hideTimeout: number;
@@ -89,10 +89,8 @@ export default class ModalManager extends Component {
/** /**
* Clear content from the modal area. * Clear content from the modal area.
*
* @protected
*/ */
clear() { protected clear() {
if (this.component) { if (this.component) {
this.component.onhide(); this.component.onhide();
} }
@@ -106,11 +104,9 @@ export default class ModalManager extends Component {
/** /**
* When the modal dialog is ready to be used, tell it! * When the modal dialog is ready to be used, tell it!
*
* @protected
*/ */
onready() { protected onready() {
if (this.component?.onready) { if (this.component) {
this.component.onready(); this.component.onready();
} }
} }