refactor(dom) uploadFiles: call func with name only ones

This commit is contained in:
coderaiser 2014-10-06 09:10:05 -04:00
parent 39827a6b57
commit 10df9c8d06

View file

@ -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();