Enjoying the Observer pattern with custom events

making web/javascript 2010.01.17 11:36