Fixed: Removed deprecated warning when creating CPDictionary with nil object

This commit is contained in:
Martin Carlberg authored and Aparajita Fishman committed 2013-03-06 07:56:50 -05:00
1 parent 4b0b19aec7
commit b98b301089
1 file changed
+2 -1
+2 -1
View File
@@ -208,7 +208,8 @@ var CPSharedFontManager = nil,
- (@action)addFontTrait:(id)sender
{
_activeChange = @{ @"addTraits": [sender tag] };
var tag = [sender tag];
_activeChange = tag === nil ? @{} : @{ @"addTraits": tag };
[self sendAction];
}