PDA

View Full Version : [FIXED] Invalid objet config parsing which contains return or comma



Balbuzar
27 Apr 2012, 3:44 AM
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):

{ renderer: function() {
return Ext.String.format("{0},{1}", "hello", "sencha");
}
}
will output:

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

tips: {
renderer: me.myRenderer
}

Phil.Strong
27 Apr 2012, 10:31 AM
I am able to reproduce this. Pushed to bugs

dfoelber
10 May 2012, 7:49 AM
This issue has been fixed and will be included in the next autoupdate.

Balbuzar
10 May 2012, 7:55 AM
Thanks :)