feature(dom) Info.files, Info.filesPasive: array

This commit is contained in:
coderaiser 2017-01-06 14:24:42 +02:00
parent 163bd0328a
commit c35f7da532
2 changed files with 4 additions and 4 deletions

View file

@ -1617,8 +1617,8 @@ var CloudCmd, Util, DOM, CloudFunc;
info.parentDirPath = Cmd.getParentDirPath();
info.element = current;
info.ext = Util.getExt(name);
info.files = files.children,
info.filesPassive = filesPassive,
info.files = [].slice.call(files.children),
info.filesPassive = [].slice.call(filesPassive),
info.first = files.firstChild;
info.getData = Cmd.getCurrentData;
info.last = files.lastChild;

View file

@ -369,8 +369,8 @@ var CloudCmd, Util, DOM, CloudFunc, $, exec;
element = DOM.getCurrentByPosition(position);
if (element) {
isFiles = ~[].indexOf.call(files, element);
isFilesPassive = ~[].indexOf.call(filesPassive, element);
isFiles = ~files.indexOf(element);
isFilesPassive = ~filesPassive.indexOf(element);
if (isFiles || isFilesPassive) {
isCurrent = DOM.isCurrentFile(element);