mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-08 15:51:16 +08:00
refactor(modal): keep instance private
This commit is contained in:
@ -84,7 +84,7 @@ export class Modal {
|
|||||||
this.animation = null;
|
this.animation = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.ionModalWillPresent.emit({ loading: this });
|
this.ionModalWillPresent.emit();
|
||||||
|
|
||||||
// get the user's animation fn if one was provided
|
// get the user's animation fn if one was provided
|
||||||
const animationBuilder = this.enterAnimation || this.config.get('modalEnter', this.mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
|
const animationBuilder = this.enterAnimation || this.config.get('modalEnter', this.mode === 'ios' ? iosEnterAnimation : mdEnterAnimation);
|
||||||
@ -144,11 +144,11 @@ export class Modal {
|
|||||||
}
|
}
|
||||||
|
|
||||||
componentDidLoad() {
|
componentDidLoad() {
|
||||||
this.ionModalDidLoad.emit({ modal: this });
|
this.ionModalDidLoad.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUnload() {
|
componentDidUnload() {
|
||||||
this.ionModalDidUnload.emit({ modal: this });
|
this.ionModalDidUnload.emit();
|
||||||
}
|
}
|
||||||
|
|
||||||
protected backdropClick() {
|
protected backdropClick() {
|
||||||
|
|||||||
Reference in New Issue
Block a user