From 26bbb9d944aff9847c2938e82844c4560329ec43 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Tue, 11 Feb 2014 07:15:51 -0500 Subject: [PATCH] refactor(dom) getSelectedFiles: always return array --- lib/client/dom.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index bafe82f8..1a5001f1 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -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; }; /**