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'));
styleElements.clear();
disabledElements.clear();
[...retiredStyleTimers.values()].forEach(clearTimeout);
Array.prototype.slice.call(retiredStyleTimers.values()).forEach(clearTimeout);
retiredStyleTimers.clear();
applyStyles(newStyles);
oldStyles.forEach(el => el.remove());