Skip to content

Commit

Permalink
Fix for the last commit, where null values were displayed as n instea…
Browse files Browse the repository at this point in the history
…d of an empty string.
  • Loading branch information
Ross Boucher committed Sep 17, 2008
1 parent 6a6348e commit 323c634
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions AppKit/CPTextField.j
Expand Up @@ -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))
Expand Down

0 comments on commit 323c634

Please sign in to comment.