Add comment explaning the change

This commit is contained in:
Rajinder Ramgarhia
2016-01-03 11:02:33 -05:00
parent 73373ee17b
commit 688e8d27de
2 changed files with 1 additions and 16 deletions

View File

@@ -339,6 +339,7 @@ void _ASEnumerateControlEventsIncludedInMaskWithBlock(ASControlNodeEvent mask, v
_ASEnumerateControlEventsIncludedInMaskWithBlock(controlEvents, ^
(ASControlNodeEvent controlEvent)
{
// Use a copy to itereate, the action perform could call remove causing a mutation crash.
NSMapTable *eventDispatchTable = [[_controlEventDispatchTable objectForKey:_ASControlNodeEventKeyForControlEvent(controlEvent)] copy];
// For each target interested in this event...