Another shot at fixing #776

This commit is contained in:
Aparajita Fishman committed 2010-07-27 14:14:45 -04:00
1 parent a8b0e7eee2
commit 1d8ab840dc
1 file changed
+9 -6
+9 -6
View File
@@ -363,15 +363,18 @@ CPThemeStateCircular = CPThemeState("circular");
}
}
}
}
if (value === undefined || value === nil)
value = [_parentAttribute valueForState:aState];
// Still don't have a value? OK, let's use the normal value.
if (value === undefined || value === nil)
value = [_values objectForKey:String(CPThemeStateNormal)];
}
if (value === undefined || value === nil)
value = [_parentAttribute valueForState:aState];
// Still don't have a value? OK, let's use the normal value.
if (value === undefined || value === nil)
value = [_values objectForKey:String(CPThemeStateNormal)];
if (value === undefined || value === nil)
value = _defaultValue;