» Dispatch an event from a static function
Implementing the singleton design pattern to achieve this is fairly well-worn territory, so if you want to go that way, go right ahead.
I’d already written a utility class and didn’t feel like adding a bunch of junk to turn it into a singleton. This trick hits the spot.