Fix eslint rules in ES5 files

This commit is contained in:
Pavel Dohnal
2019-01-23 14:36:39 +01:00
parent 20ae36cf0b
commit f1cbc4a7c6
15 changed files with 82 additions and 92 deletions

View File

@@ -17,7 +17,7 @@ define('handlebars_helpers', ['handlebars'], function (Handlebars) {
Handlebars.registerHelper('date_format', function (timestamp, block) {
var f;
if (window.moment) {
if (timestamp === undefined || isNaN(timestamp) || timestamp <= 0) {
if (timestamp === undefined || Number.isNaN(timestamp) || timestamp <= 0) {
return undefined;
}