apply: replace spread operator

This commit is contained in:
Rob Garrison 2017-09-27 22:23:53 -05:00
parent 91daeb4a9e
commit 67bbe4d569

View File

@ -277,7 +277,7 @@ function replaceAll(newStyles) {
oldStyles.forEach(el => (el.id += '-ghost')); oldStyles.forEach(el => (el.id += '-ghost'));
styleElements.clear(); styleElements.clear();
disabledElements.clear(); disabledElements.clear();
[...retiredStyleTimers.values()].forEach(clearTimeout); Array.prototype.slice.call(retiredStyleTimers.values()).forEach(clearTimeout);
retiredStyleTimers.clear(); retiredStyleTimers.clear();
applyStyles(newStyles); applyStyles(newStyles);
oldStyles.forEach(el => el.remove()); oldStyles.forEach(el => el.remove());