refactor(buffer) slice -> spread

This commit is contained in:
coderaiser 2017-02-14 23:41:29 +02:00
parent d875cafb78
commit 4ca3cfe1a5

View file

@ -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) {