X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fdata%2FJsonReader.js;fp=Roo%2Fdata%2FJsonReader.js;h=3c95200ccf07cf6addfd74f01124791cfef2336c;hp=4efd1fbb1e323adecedcedc4816313bf4ee44f6f;hb=b4b782a6682bf75922fed1b83e5b27a29e7f9084;hpb=b4956f108c96f14f72807a2d603274d3305036bd diff --git a/Roo/data/JsonReader.js b/Roo/data/JsonReader.js index 4efd1fbb1e..3c95200ccf 100644 --- a/Roo/data/JsonReader.js +++ b/Roo/data/JsonReader.js @@ -141,7 +141,7 @@ Roo.extend(Roo.data.JsonReader, Roo.data.DataReader, { */ this.o = o; var s = this.meta, Record = this.recordType, - f = Record ? Record.prototype.fields : null, fi = f.items, fl = f.length; + f = Record ? Record.prototype.fields : null, fi = f ? f.items : [], fl = f ? f.length: 0; // Generate extraction functions for the totalProperty, the root, the id, and for each field if (!this.ef) {