From 3e9e0802f6df40ffa44f34d2059b2fbfbbbb1b23 Mon Sep 17 00:00:00 2001 From: cncolder Date: Wed, 22 Dec 2010 15:15:05 +0800 Subject: [PATCH] Show null placeholder when the value is CPNull. --- AppKit/CPKeyValueBinding.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPKeyValueBinding.j b/AppKit/CPKeyValueBinding.j index 321b6889b..409ee7c14 100644 --- a/AppKit/CPKeyValueBinding.j +++ b/AppKit/CPKeyValueBinding.j @@ -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;