Skip to content

Commit

Permalink
fix(animation): regression in _willChg()
Browse files Browse the repository at this point in the history
  • Loading branch information
manucorporat committed Nov 16, 2016
1 parent 9f7972b commit 91f5087
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/animations/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ export class Animation {
*/
_willChg(addWillChange: boolean) {
let wc: string[];
var effects = this._fx;
let effects = this._fx;
if (addWillChange && effects) {
wc = [];
for (var i = 0; i < effects.length; i++) {
Expand All @@ -926,10 +926,10 @@ export class Animation {
}
}
}

let willChange = (wc && wc.length) ? wc.join(',') : '';
for (var i = 0; i < this._eL; i++) {
// ******** DOM WRITE ****************
(<any>this._e[i]).style.willChange = addWillChange ? wc.join(',') : '';
(<any>this._e[i]).style.willChange = willChange;
}
}

Expand Down

0 comments on commit 91f5087

Please sign in to comment.