From f8872a47b00906432ff0b6f55d37ae6ff151ccae Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Thu, 5 Nov 2015 19:29:08 -0600 Subject: [PATCH] fix(animations): fix add for non strict mode --- ionic/animations/animation.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ionic/animations/animation.ts b/ionic/animations/animation.ts index 82827f75d9..bad3ecdc60 100644 --- a/ionic/animations/animation.ts +++ b/ionic/animations/animation.ts @@ -94,10 +94,10 @@ export class Animation { } add(childAnimations) { - childAnimations = Array.isArray(childAnimations) ? childAnimations : arguments; - for (let i = 0; i < childAnimations.length; i++) { - childAnimations[i].parent(this); - this._chld.push(childAnimations[i]); + var _childAnimations = Array.isArray(childAnimations) ? childAnimations : arguments; + for (let i = 0; i < _childAnimations.length; i++) { + _childAnimations[i].parent(this); + this._chld.push(_childAnimations[i]); } return this; }