mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(buffer) rmCutClass: forEach -> slice, forEach
This commit is contained in:
parent
f19c28f69e
commit
6c8c128b38
1 changed files with 5 additions and 3 deletions
|
|
@ -46,9 +46,11 @@
|
|||
function rmCutClass() {
|
||||
var files = DOM.getByClassAll(CLASS);
|
||||
|
||||
[].forEach.call(files, function(element) {
|
||||
element.classList.remove(CLASS);
|
||||
});
|
||||
[]
|
||||
.slice.call(files)
|
||||
.forEach(function(element) {
|
||||
element.classList.remove(CLASS);
|
||||
});
|
||||
}
|
||||
|
||||
function isEnabled(callback) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue