apply: replace spread operator
This commit is contained in:
parent
91daeb4a9e
commit
67bbe4d569
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user