fluid-project/infusion — pull request #236 by amb26 (2012-08-22 09:17:38+00:00)
Title: FLUID-4257: Genuine lifecycle system for components, including 4 new standard events on every eventedComponent, onCreate, onAttach, onClear and onDestroy

New method on every component, "destroy" will initiate appropriate destruction semantics. Automatic tracking of listeners generated and injected by the framework, to ensure that any registered by a destroyed component are automatically unregistered. Fixes to core framework event system to allow removal by reference for an event which was registered by namespace. Lazy init upgrade for core event firers to try to ensure that proliferation of new events on all components does not create unnecessary memory garbage (this would otherwise be 12 objects per component) - listener records are now only initialised when the first listener is added. Linting fixes (mostly whitespace) for Fluid.js