From 9ad33574e9b4b1777c7fbeaaeb372330917093f2 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 7 Mar 2017 14:30:07 +0100 Subject: [PATCH] Fix the function returning the pads list in the drive --- www/common/fileObject.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/www/common/fileObject.js b/www/common/fileObject.js index 78bbbf088..7c63384e6 100644 --- a/www/common/fileObject.js +++ b/www/common/fileObject.js @@ -232,13 +232,13 @@ define([ return ret; }; - var getFilesDataFiles = function () { + var getFilesDataFiles = exp.getFilesDataFiles = function () { var ret = []; - for (var el in files[FILES_DATA]) { + files[FILES_DATA].forEach(function (el) { if (el.href && ret.indexOf(el.href) === -1) { ret.push(el.href); } - } + }); return ret; };