From 10df9c8d06239717f41cbc3e1bd29e68152b7924 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Mon, 6 Oct 2014 09:10:05 -0400 Subject: [PATCH] refactor(dom) uploadFiles: call func with name only ones --- lib/client/dom.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/client/dom.js b/lib/client/dom.js index 77814679..a7e5a985 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -428,8 +428,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; Util.checkArgs(arguments, ['files']); if (files.length) { + func = func(files[0].name); + Util.forEach(files, function(file) { - func = Util.exec.with(load, file, func(file.name)); + func = Util.exec.with(load, file, func); }); func();