Results 1 to 4 of 4

Thread: Invalid objet config parsing which contains return or comma

    Success! Looks like we've fixed this one. According to our records the fix was applied for DSGNR-1828 in a recent build.
  1. #1
    Sencha User
    Join Date
    Apr 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default Invalid objet config parsing which contains return or comma

    In any kind of property which requires an object, if an objet function contains a "return" or a comma, generated code is invalid.

    For example, a tips config (for a chart):
    Code:
    {    renderer: function() {
            return Ext.String.format("{0},{1}", "hello", "sencha");
        }
    }
    will output:
    Code:
    tips: {    
        renderer: function(){
            returnExt.String.format('{0},{1}',
            hello,
            sencha);
        }
    }
    • there is NO space between "return" and "Ext."
    • parameters quotes disappears ("hello" => hello)
    • (minor) all commas will be followed by a EOL
    My workaround is to create a new function for the renderer
    Code:
    tips: {
        renderer: me.myRenderer
    }

  2. #2
    Sencha User Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,953
    Vote Rating
    65
      0  

    Default

    I am able to reproduce this. Pushed to bugs
    Phil Strong
    @philstrong

  3. #3
    Sencha User dfoelber's Avatar
    Join Date
    Sep 2011
    Location
    Rockville, MD
    Posts
    96
    Vote Rating
    12
      0  

    Default

    This issue has been fixed and will be included in the next autoupdate.
    David Foelber
    @davidfoelber
    Sencha Architect Development Team

  4. #4
    Sencha User
    Join Date
    Apr 2010
    Posts
    8
    Vote Rating
    0
      0  

    Default

    Thanks

Posting Permissions

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