|
-
1. That's my mistake. "function" should be there. Too much Java lately.
2. No, Broadcaster cannot be used "instanceless" because you need an actual EventDispatcher to dispatch events. That instance could have been a bare EventDispatcher, but you need something. If a bare EventDispatcher were used, the class would not need to extend anything.
The semi private constructor and _instance variable are used to implement a singleton pattern.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|