Skip to content

Commit 91f5087

Browse files
committed
fix(animation): regression in _willChg()
1 parent 9f7972b commit 91f5087

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/animations/animation.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -913,7 +913,7 @@ export class Animation {
913913
*/
914914
_willChg(addWillChange: boolean) {
915915
let wc: string[];
916-
var effects = this._fx;
916+
let effects = this._fx;
917917
if (addWillChange && effects) {
918918
wc = [];
919919
for (var i = 0; i < effects.length; i++) {
@@ -926,10 +926,10 @@ export class Animation {
926926
}
927927
}
928928
}
929-
929+
let willChange = (wc && wc.length) ? wc.join(',') : '';
930930
for (var i = 0; i < this._eL; i++) {
931931
// ******** DOM WRITE ****************
932-
(<any>this._e[i]).style.willChange = addWillChange ? wc.join(',') : '';
932+
(<any>this._e[i]).style.willChange = willChange;
933933
}
934934
}
935935

0 commit comments

Comments
 (0)