Also, about late registering: if you begin to add listeners before all
events are registering you will be exposed to subtle bugs, think the case
when you do

event_dispatcher.push_handlers(obj)

Under the hood, obj is inspected for methods obj.<registered event name> ,
and if any such method exists, it is added as listener for the <registered
event name >

Now, if you move the line event_dispatcher.push_handlers before / after a
registration call, the behavior would change.

-- 
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cocos-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to