mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
fix(animations): fix add for non strict mode
This commit is contained in:
@ -94,10 +94,10 @@ export class Animation {
|
|||||||
}
|
}
|
||||||
|
|
||||||
add(childAnimations) {
|
add(childAnimations) {
|
||||||
childAnimations = Array.isArray(childAnimations) ? childAnimations : arguments;
|
var _childAnimations = Array.isArray(childAnimations) ? childAnimations : arguments;
|
||||||
for (let i = 0; i < childAnimations.length; i++) {
|
for (let i = 0; i < _childAnimations.length; i++) {
|
||||||
childAnimations[i].parent(this);
|
_childAnimations[i].parent(this);
|
||||||
this._chld.push(childAnimations[i]);
|
this._chld.push(_childAnimations[i]);
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user