mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-09 10:20:59 +00:00
Fixed: Removed deprecated warning when creating CPDictionary with nil object
This commit is contained in:
1 parent
4b0b19aec7
commit
b98b301089
1 file changed
+2
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user