1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    fersingb is on a distinguished road

      0  

    Default Unanswered: Different behavior between the development app and the built app

    Unanswered: Different behavior between the development app and the built app


    Hi,

    in one of my controllers I'm executing the following code:
    Code:
    var items = [];                
    Ext.each(records, function(match) {
                        items.push( { xtype:'panel', html: this.getMatchesVoteProfile().getTemplate(match), profileInfo: match } );
                    }, this);
    
    this.matchesVoteProfile.add(items);
    In the development code, this.matchesVoteProfile.getAt(0).profileInfo does exist AND this.matchesVoteProfile.getAt(0).config.profileInfo does exist too.

    In the testing code (the one I get when I run "sencha app build testing"), I only get this.matchesVoteProfile.getAt(0).config.profileInfo . Can someone explain me why?

    I'm pretty sure I'm doing something wrong here. What is the correct way of adding a custom attribute (profileInfo in my case) to a component?

    Thanks
    Boris

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,227
    Answers
    3523
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    I'm not really sure what I'm looking at or where it is or anything.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    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
    Sencha User
    Join Date
    Oct 2012
    Location
    Poland
    Posts
    70
    Answers
    4
    Vote Rating
    5
    szimek is on a distinguished road

      0  

    Default


    It's most likely the same issue I reported here: http://www.sencha.com/forum/showthread.php?253461

  4. #4
    Sencha User
    Join Date
    Jan 2013
    Posts
    2
    Vote Rating
    0
    fersingb is on a distinguished road

      0  

    Default


    Yes szimek, it looks pretty similar. I don't understand why there should be a difference between the dev code and the "built" code. And if I'm doing something wrong here I'd like to know how to do it right.

    Do I have to always use component.config.profileInfo instead of component.profileInfo ?

Thread Participants: 2