mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(dom) getAllFiles
This commit is contained in:
parent
3ed9b30994
commit
d82c49b0d6
2 changed files with 2 additions and 2 deletions
|
|
@ -552,7 +552,7 @@ function CmdProto() {
|
|||
const from = (a) => a === '..' ? 1 : 0;
|
||||
const i = from(name);
|
||||
|
||||
return [].slice.call(files, i);
|
||||
return [...files].slice(i);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -370,7 +370,7 @@ function setCurrentFileByEvent(event) {
|
|||
}
|
||||
|
||||
function getFilesRange(from, to) {
|
||||
const files = [...DOM.getFiles()].slice(1);
|
||||
const files = DOM.getAllFiles();
|
||||
const names = DOM.getFilenames(files);
|
||||
const getNameIndex = getIndex(names);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue