Listening to custom (not jQuery) events

Javan wrote about this in his post in this thread: One of two actions on same element not being called