Merge pull request #530 from mailpoet/fix_safari_es6_bug

removed ES6 syntax from non converted JS file - fixes #529 (Safari bug)
This commit is contained in:
Tautvidas Sipavičius
2016-06-22 14:29:57 +03:00
committed by GitHub
2 changed files with 8 additions and 4 deletions

View File

@ -68,7 +68,7 @@ define('date',
});
},
convertFormat: function(format) {
const format_mappings = {
var format_mappings = {
date: {
D: 'ddd',
l: 'dddd',
@ -124,9 +124,9 @@ define('date',
if (!format || format.length <= 0) return format;
const replacements = format_mappings['date'];
var replacements = format_mappings['date'];
let outputFormat = '';
var outputFormat = '';
Object.keys(replacements).forEach(function(key) {
if (format.indexOf(key) !== -1) {