Results 1 to 4 of 4

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

  1. #1
    Sencha User
    Join Date
    Jan 2013
    Posts
    5
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    I'm not really sure what I'm looking at or where it is or anything.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

  3. #3
    Sencha User
    Join Date
    Oct 2012
    Location
    Poland
    Posts
    70
    Answers
    4
    Vote Rating
    5
      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
    5
    Vote Rating
    0
      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 ?

Posting Permissions

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