refactor(animation): remove ion-animation-controller (#16842)

This commit is contained in:
Manu MA
2018-12-21 13:17:42 +01:00
committed by GitHub
parent 93671797a6
commit 8b140306ef
27 changed files with 91 additions and 142 deletions

View File

@ -145,9 +145,9 @@ async function overlayAnimation(
baseEl.classList.remove('ion-page-invisible');
const aniRoot = baseEl.shadowRoot || overlay.el;
const animation = overlay.animation = await overlay.animationCtrl.create(animationBuilder, aniRoot, opts);
const animation = overlay.animation = await import('./animation').then(mod => mod.create(animationBuilder, aniRoot, opts));
overlay.animation = animation;
if (!overlay.animated) {
if (!overlay.animated || !overlay.config.getBoolean('animated', true)) {
animation.duration(0);
}
if (overlay.keyboardClose) {