Show null placeholder when the value is CPNull.

This commit is contained in:
cncolder
2010-12-22 15:15:05 +08:00
parent b8f9263d18
commit 3e9e0802f6
+1 -1
View File
@@ -231,7 +231,7 @@ var CPBindingOperationAnd = 0,
aValue = [valueTransformer transformedValue:aValue];
if (aValue === undefined || aValue === nil)
if (aValue === undefined || aValue === nil || aValue === [CPNull null])
aValue = [options objectForKey:CPNullPlaceholderBindingOption] || nil;
return aValue;