Fixed: Removed use of in some cases undefined global variables

This commit is contained in:
Martin Carlberg
2013-05-16 11:25:42 +02:00
parent 256c5b83da
commit f96e934cf8
+2 -2
View File
@@ -359,7 +359,7 @@ var abbreviationDictionary,
if ([abbreviationDictionary containsKey:aTimeZoneString])
return [self timeZoneWithAbbreviation:aTimeZoneString];
var dict = [localizedName valueForKey:[_locale objectForKey:CPLocaleLanguageCode]];
var dict = [localizedName valueForKey:[_locale objectForKey:CPLocaleLanguageCode]],
keys = [dict keyEnumerator],
key;
@@ -379,7 +379,7 @@ var abbreviationDictionary,
+ (CPArray)_namesForStyle:(NSTimeZoneNameStyle)style locale:(CPLocale)aLocale
{
var array = [CPArray array],
dict = [localizedName valueForKey:[aLocale objectForKey:CPLocaleLanguageCode]];
dict = [localizedName valueForKey:[aLocale objectForKey:CPLocaleLanguageCode]],
keys = [dict keyEnumerator],
key;