Ext JS apps can be complex. Out-of-the box, it's not apparent how to structure and build your new application. In this presentation, we will review some simple techniques to improve the design and maintainability of a complex Ext JS application.
Presented at the first Three Pillar Global meeting in Fairfax, VA, on January 19, 2010.
http://www.meetup.com/baltimore-dc-javascript-users/calendar/12219819/
11. MyApp.eventManager = new Ext.util.Observable();
MyApp.eventManager.addEvents('selectnode');
..
// in a tree click listener:
MyApp.eventManager.fireEvent('selectnode', node);
..
// after a grid is defined - wire it up to the tree:
MyApp.eventManager.on('selectnode',
grid.loadNodeData.createDelegate(grid));