mirror of
https://github.com/flarum/core.git
synced 2025-08-06 16:36:47 +02:00
common: mark some ModalManager methods/properties as protected
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user