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
    Balbuzar is on a distinguished road

      0  

    Default Invalid objet config parsing which contains return or comma

    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 - Architect Dev Team Phil.Strong's Avatar
    Join Date
    Mar 2007
    Location
    Olney, MD
    Posts
    1,924
    Vote Rating
    63
    Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice Phil.Strong is just really nice

      0  

    Default


    I am able to reproduce this. Pushed to bugs
    Phil Strong
    @philstrong
    #SenchaArchitect
    Sencha Architect Development Team

  3. #3
    Sencha - Architect Dev Team dfoelber's Avatar
    Join Date
    Sep 2011
    Location
    Rockville, MD
    Posts
    96
    Vote Rating
    12
    dfoelber will become famous soon enough

      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
    Balbuzar is on a distinguished road

      0  

    Default


    Thanks

Thread Participants: 2