17 Jan 2012 1:01 AM #1
[BUG?] Ext.grid.plugin.* inconsistency
I noticed the following:
 Not all grid plugins ultimately inherit from Ext.AbstractPlugin, especially the Ext.grid.plugin.Editing, I wonder why it has to be like that.
 The HeaderResizer plugin inherits from Ext.util.Observable, should't it use the observable as a mixin?
17 Jan 2012 7:58 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Ext.AbstractPlugin doesn't really do a whole lot. It has some standard template methods but that's really it. Ext.util.Observable can be a mixin or it's own class so extending Ext.util.Observable is still valid. Ext.AbstractPlugin extends Ext.Base and Ext.util.Observable also extends Ext.Base so they are sisters and since Ext.AbstractPlugin doesn't do a whole lot, extending Ext.util.Observable may have better performance than using it as a mixing and extending Ext.AbstractPlugin. Inconsistent... your argument is still valid there.Mitchell Simoens @SenchaMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.