]> source.dussan.org Git - jquery-ui.git/commitdiff
Calendar: Fix jshint issues 1651/head
authorFelix Nagel <info@felixnagel.com>
Wed, 25 Nov 2015 21:22:31 +0000 (22:22 +0100)
committerFelix Nagel <info@felixnagel.com>
Wed, 2 Dec 2015 16:15:23 +0000 (17:15 +0100)
Gruntfile.js
tests/unit/date/helper.js

index 52e840081b1ada37eb710eaae54761f1a6ae262f..7426b7fb42adfd0fbec7dacb80d6a17a6d6c51d4 100644 (file)
@@ -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" } ),
index 26f8b67e9ff0e5aed99c3d0eca6acd95fdb7907a..2f6f51fd95a83586b8711ec54772ba806ead8651 100644 (file)
@@ -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 {