refactor(dom) getAllFiles

This commit is contained in:
coderaiser 2017-05-15 13:35:10 +03:00
parent 3ed9b30994
commit d82c49b0d6
2 changed files with 2 additions and 2 deletions

View file

@ -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);
};
/**

View file

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