mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-25 17:04:16 +00:00
refactor(buffer) slice -> spread
This commit is contained in:
parent
d875cafb78
commit
4ca3cfe1a5
1 changed files with 3 additions and 4 deletions
|
|
@ -44,10 +44,9 @@ function BufferProto() {
|
|||
function rmCutClass() {
|
||||
const files = DOM.getByClassAll(CLASS);
|
||||
|
||||
[].slice.call(files)
|
||||
.forEach(function(element) {
|
||||
element.classList.remove(CLASS);
|
||||
});
|
||||
[...files].forEach((element) => {
|
||||
element.classList.remove(CLASS);
|
||||
});
|
||||
}
|
||||
|
||||
function callIfEnabled(callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue