From 7bcb4dec54106762d1a5ffbfb44f29c4d75242f6 Mon Sep 17 00:00:00 2001 From: Dan Bucholtz Date: Sat, 2 Dec 2017 00:45:58 -0600 Subject: [PATCH] refactor(modal): keep instance private --- packages/core/src/components/modal/modal.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/src/components/modal/modal.tsx b/packages/core/src/components/modal/modal.tsx index e2fdca5328..8941b0c300 100644 --- a/packages/core/src/components/modal/modal.tsx +++ b/packages/core/src/components/modal/modal.tsx @@ -84,7 +84,7 @@ export class Modal { this.animation = null; } - this.ionModalWillPresent.emit({ loading: this }); + this.ionModalWillPresent.emit(); // get the user's animation fn if one was provided const animationBuilder = this.enterAnimation || this.config.get('modalEnter', this.mode === 'ios' ? iosEnterAnimation : mdEnterAnimation); @@ -144,11 +144,11 @@ export class Modal { } componentDidLoad() { - this.ionModalDidLoad.emit({ modal: this }); + this.ionModalDidLoad.emit(); } componentDidUnload() { - this.ionModalDidUnload.emit({ modal: this }); + this.ionModalDidUnload.emit(); } protected backdropClick() {