refactor(dom) getSelectedFiles: always return array

This commit is contained in:
coderaiser 2014-02-11 07:15:51 -05:00
parent 6646819746
commit 26bbb9d944

View file

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