mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(dom) getSelectedFiles: always return array
This commit is contained in:
parent
6646819746
commit
26bbb9d944
1 changed files with 3 additions and 2 deletions
|
|
@ -906,9 +906,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
* @pCurrentFile
|
||||
*/
|
||||
this.getSelectedFiles = function() {
|
||||
var lRet = this.getByClassAll(SELECTED_FILE);
|
||||
var selected = this.getByClassAll(SELECTED_FILE),
|
||||
ret = Util.slice(selected);
|
||||
|
||||
return lRet.length ? lRet : null;
|
||||
return ret;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue