Fix for the last commit, where null values were displayed as n instead of an empty string.

This commit is contained in:
Ross Boucher
2008-09-17 16:19:54 -07:00
parent 6a6348e841
commit 323c6342d8
+3 -3
View File
@@ -439,15 +439,15 @@ var _CPTextFieldSquareBezelColor = nil;
@ignore
*/
- (void)setObjectValue:(id)aValue
{
{CPLog(aValue);
[super setObjectValue:aValue];
#if PLATFORM(DOM)
var displayString = "";
if ([aValue respondsToSelector:@selector(string)])
if (aValue && [aValue respondsToSelector:@selector(string)])
displayString = [aValue string];
else
else if (aValue)
displayString += aValue;
if (CPFeatureIsCompatible(CPJavascriptInnerTextFeature))