_CPThemeAttribute -setValue should not blow away existing values.

This commit is contained in:
Aparajita Fishman committed 2011-05-06 08:51:17 -04:00
1 parent 835d89774a
commit ea0a47a845
1 file changed
+1 -6
+1 -6
View File
@@ -519,12 +519,7 @@ CPThemeStateCircular = CPThemeState("circular");
- (void)setValue:(id)aValue
{
_cache = {};
if (aValue === undefined || aValue === nil)
_values = [CPDictionary dictionary];
else
_values = [CPDictionary dictionaryWithObject:aValue forKey:String(CPThemeStateNormal)];
[self setValue:aValue forState:CPThemeStateNormal];
}
- (void)setValue:(id)aValue forState:(CPThemeState)aState