chore(cloudcmd) lint: convert forEach to for-of

This commit is contained in:
coderaiser 2019-06-25 20:12:34 +03:00
parent 6d69cd3a48
commit fd6d384ba2
9 changed files with 25 additions and 24 deletions

View file

@ -206,12 +206,12 @@ async function onChange(el) {
}
function onSave(obj) {
Object.keys(obj).forEach((name) => {
for (const name of Object.keys(obj)) {
const data = obj[name];
CloudCmd._config(name, data);
input.setValue(name, data, Element);
});
}
}
async function saveHttp(obj) {

View file

@ -267,7 +267,7 @@ function download(type) {
if (!files.length)
return alertNoFiles();
files.forEach((file) => {
for (const file of files) {
const selected = DOM.isSelected(file);
const isDir = DOM.isCurrentIsDir(file);
const path = DOM.getCurrentPath(file);
@ -302,7 +302,7 @@ function download(type) {
if (selected)
DOM.toggleSelectedFile(file);
});
}
}
function getCurrentPosition() {