Skip to content

Commit 442f79d

Browse files
committed
Merge pull request globalizejs#89 from christianv/master
Don't expose culture as a JavaScript global variable
2 parents 2be340f + db75967 commit 442f79d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/globalize.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1412,7 +1412,7 @@ Globalize.findClosestCulture = function( name ) {
14121412
};
14131413

14141414
Globalize.format = function( value, format, cultureSelector ) {
1415-
culture = this.findClosestCulture( cultureSelector );
1415+
var culture = this.findClosestCulture( cultureSelector );
14161416
if ( value instanceof Date ) {
14171417
value = formatDate( value, format, culture );
14181418
}

0 commit comments

Comments
 (0)