16 Apr 2011 12:42 PM #1
[OPEN-EXTJSIV-1658][B3] Mixins and extended methods
I don't know if this is a bug or a design, but:
If I place extended methods (like initComponent) or events for an object into a mixin, they're never called. When I move those methods back into my Ext.define config, they're called fine. If I try to call them myself (outside the normal lifecycle, but to test it out), the methods fire.
17 Apr 2011 2:27 PM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Tried using constructor instead of initComponent?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 firstname.lastname@example.org
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.
17 Apr 2011 6:22 PM #3
I want initComponent, because I want to do things that usually happen after ancestor objects have initialize (building stores, views, etc.). initComponent has not been replaced by constructor (yet?), and ancestor objects definitely use it, so I'd like to callParent, then do things with what has been initialized thus far.
By sebsei in forum Ext:BugsReplies: 0Last Post: 16 Apr 2011, 3:15 AM
By LesJ in forum Ext:BugsReplies: 3Last Post: 21 Mar 2011, 12:58 PM
By After2050 in forum Ext 3.x: Help & DiscussionReplies: 11Last Post: 19 Nov 2010, 11:33 AM
By DiscoBoy in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 13 May 2009, 10:36 AM
By acetinick in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 24 Sep 2008, 4:43 AM