Fix eslint no-undef in ES5

[MAILPOET-1085]
This commit is contained in:
Pavel Dohnal
2017-09-05 17:29:48 +01:00
parent 9e932c9078
commit f77620d649
30 changed files with 284 additions and 299 deletions

View File

@@ -22,9 +22,9 @@ define('handlebars_helpers', ['handlebars'], function(Handlebars) {
var f = block.hash.format || 'MMM Do, YYYY';
// check if we passed a timestamp
if(parseInt(timestamp, 10) == timestamp) {
return moment.unix(timestamp).format(f);
return window.moment.unix(timestamp).format(f);
} else {
return moment.utc(timestamp).format(f);
return window.moment.utc(timestamp).format(f);
}
} else {
return timestamp;