From 7ed45541096b58c56c4fc40b1a0ca9c10b2fe229 Mon Sep 17 00:00:00 2001 From: Felix Nagel Date: Wed, 25 Nov 2015 22:22:31 +0100 Subject: [PATCH] Calendar: Fix jshint issues --- Gruntfile.js | 2 +- tests/unit/date/helper.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 52e840081..7426b7fb4 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -411,7 +411,7 @@ grunt.registerTask( "compile-globalize", function() { Globalize.load( cldrData.entireSupplemental() ); formatters = languages.reduce( function( ret, language ) { - var globalize = Globalize( language ); + var globalize = new Globalize( language ); ret = ret.concat([ globalize.dateFormatter( { raw: "EEEEEE" } ), diff --git a/tests/unit/date/helper.js b/tests/unit/date/helper.js index 26f8b67e9..2f6f51fd9 100644 --- a/tests/unit/date/helper.js +++ b/tests/unit/date/helper.js @@ -9,6 +9,7 @@ return $.extend( helper, { getAttributes: function( locale ) { var globalize = new Globalize( locale ), weekdayShortFormatter = globalize.dateFormatter( { raw: "EEEEEE" } ), + weekdayNarrowFormatter = globalize.dateFormatter( { raw: "EEEEE" } ), firstDayRaw = globalize.dateFormatter( { raw: "c" } )( new Date( 1970, 0, 3 ) ); return { -- 2.39.5