From: Felix Nagel Date: Wed, 25 Nov 2015 21:22:31 +0000 (+0100) Subject: Calendar: Fix jshint issues X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=7ed45541096b58c56c4fc40b1a0ca9c10b2fe229;p=jquery-ui.git Calendar: Fix jshint issues --- 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 {