In essence, factory functions are class methods that *manufacture* items or other properties during the instantiation of the class. This article explains pros and cons of factory function and how to use them correctly.
A publish/subscribe plugin for Ext components: dot-separated topics with wildcards, adding subscribe and publish to anything extending Ext.util.Observable.