Results 1 to 3 of 3

Thread: [OPEN-EXTJSIV-1658][B3] Mixins and extended methods

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    10
      0  

    Question [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.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,323
    Vote Rating
    1294
      0  

    Default

    Tried using constructor instead of initComponent?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    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 services@sencha.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.

  3. #3
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    10
      0  

    Default

    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.

    stevil

Similar Threads

  1. Replies: 0
    Last Post: 16 Apr 2011, 3:15 AM
  2. [OPEN-EXTJSIV-207] Mixins issues
    By LesJ in forum Ext:Bugs
    Replies: 3
    Last Post: 21 Mar 2011, 12:58 PM
  3. Private methods in extended classes
    By After2050 in forum Ext 3.x: Help & Discussion
    Replies: 11
    Last Post: 19 Nov 2010, 11:33 AM
  4. Publich methods in extended class
    By DiscoBoy in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 13 May 2009, 10:36 AM
  5. Using methods in extended class
    By acetinick in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 24 Sep 2008, 4:43 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •