View Full Version : Ext 4.1: Template for JS code builder in data reader for buildRecordDataExtractor

Thomas Pollinger
2 Oct 2012, 3:02 PM
When I was debugging into extractData, I saw that convertRecordData was generated by a template declared in Ext.data.reader.Reader#recordDataExtractorTemplate. Is there any reason why this approach was taken to build parameterized code snippets?

The generated code was not very readable
The template was even less readable

Is there a way to make a more debuggable version of this?

10 Oct 2012, 8:25 AM
There is always a choice between what is readable and what performs best