Results 1 to 2 of 2

Thread: Panel with template renders null objects as null string

    Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-3163 in a recent build.
  1. #1
    Touch Premium Member
    Join Date
    Aug 2010
    Location
    New York, NY
    Posts
    66
    Vote Rating
    1
      0  

    Default Panel with template renders null objects as null string

    I have a panel with a template like this:

    Code:
    {
      xtype:'panel',
      tpl: 'first name is {fname}'
    }
    Now i update the panel and with null it actually shows the string null. This is not how it worked in sencha touch 1 and it should not say the string null.

    I am updating like this:
    Code:
    panelObj.setData({fname:null});
    Result is that I see this:

    first name is null
    What am i doing wrong

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

    Default

    I'm actually going to open this as a bug.
    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

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
  •