From f96e934cf8b9dd2e48317bbda5b22c973dc18e85 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Thu, 16 May 2013 11:25:42 +0200 Subject: [PATCH] Fixed: Removed use of in some cases undefined global variables --- Foundation/CPTimeZone.j | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Foundation/CPTimeZone.j b/Foundation/CPTimeZone.j index 1bd2d5d7a..f8dc31121 100644 --- a/Foundation/CPTimeZone.j +++ b/Foundation/CPTimeZone.j @@ -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;