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'));
|
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());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user