Fix uglify js error, complaining about ES6 syntax

This commit is contained in:
Hadi Nategh 2017-10-12 10:05:10 +02:00
parent 2be145beda
commit 8b84f56421

View File

@ -997,9 +997,13 @@ var et2_vfsSelect = (function(){ "use strict"; return et2_inputWidget.extend(
case 'open-multiple':
if (_value.dir && _value.dir.selected)
{
Object.keys(_value.dir.selected)
.forEach((key) => (_value.dir.selected[key] != "")
&& files.push(_value.path+'/'+_value.dir.selected[key]));
for(var key in Object.keys(_value.dir.selected))
{
if (_value.dir.selected[key] != "")
{
files.push(_value.path+'/'+_value.dir.selected[key]);
}
}
}
break;
case 'select-dir':