View Full Version : [FIXED-178] Ext.data.JsonStore fails

27 Jul 2010, 12:43 PM
Using v0.92, but the issue existed in v0.91 as well. Ext.data.JsonStore doesn't even make a server call if model is not specified. The following error occurs:

Uncaught TypeError: Cannot read property 'prototype' of undefined. ext-touch-debug.js:11888

Here's my code:

onReady: function() {
var store = new Ext.data.JsonStore({
storeId: 'myStore',
autoLoad: true,
proxy: {
type: 'ajax',
url: 'data.json',
method: 'get',
reader: {
type: 'json'
fields: ['firstName', 'lastName']

My data.json looks like this:

{firstName: 'Julio', lastName: 'Benesh'},
{firstName: 'Julio', lastName: 'Minich'},
{firstName: 'Tania', lastName: 'Ricco'}

When I replace fields config option with model, at least the store makes the server call, but then JSON parsing fails. See my other but report here (http://www.sencha.com/forum/showthread.php?105481-Ext.util.JSON.decode%28%29-fails).


Jamie Avins
27 Jul 2010, 1:05 PM
Thanks for the report.

28 Jul 2010, 11:25 AM
This has been fixed and will be part of the 0.9.3 which will be out next week.