* Api: Fix mobile template not working with iOS < 10 anymore (iOS < 10 is not compatible with JS ES6)

This commit is contained in:
Hadi Nategh
2019-03-18 15:27:12 +01:00
parent fd662a266b
commit 2126fca1b4
5 changed files with 15 additions and 15 deletions

View File

@ -264,7 +264,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
/**
* resolve given data whilst the condition met
*/
const resolveData = function(_d, condition, action) {
var resolveData = function(_d, condition, action) {
var whilst = function (_d) {
return condition(_d) ? action(condition(_d)).then(whilst) : Promise.resolve(_d);
}
@ -274,7 +274,7 @@ egw.extend('user', egw.MODULE_GLOBAL, function()
/**
* get data promise
*/
const getData = function(_match)
var getData = function(_match)
{
var match = _match;
return new Promise(function(resolve)