fix(loading): fix enter animation

This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
Adam Bradley
2017-08-03 20:43:05 -05:00
gitea-unlock(16/)
parent f1b60c61c3
commit 5bdc184695
octicon-diff(16/tw-mr-1) 3 changed files with 3 additions and 5 deletions

4
packages/core/src/components/loading/loading.tsx
View File

@@ -93,13 +93,12 @@ export class Loading {
if (!animationBuilder) {
// user did not provide a custom animation fn
// decide from the config which animation to use
// TODO!!
animationBuilder = iOSEnterAnimation;
}
// build the animation and kick it off
Ionic.controller('animation').then(Animation => {
this.animation = new Animation();
this.animation = animationBuilder(Animation, this.el);
this.animation.onFinish((a: any) => {
a.destroy();
@@ -129,7 +128,6 @@ export class Loading {
if (!animationBuilder) {
// user did not provide a custom animation fn
// decide from the config which animation to use
// TODO!!
animationBuilder = iOSLeaveAnimation;
}