mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
feature(dom) Info.files, Info.filesPasive: array
This commit is contained in:
parent
163bd0328a
commit
c35f7da532
2 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue