fix(animations): fix add for non strict mode

This commit is contained in:
Tim Lancina
2015-11-05 19:29:08 -06:00
parent 0a06357de6
commit f8872a47b0

View File

@ -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;
}