From: Edward Date: Fri, 15 May 2015 04:43:43 +0000 (+0800) Subject: Roo/data/JsonReader.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=b4b782a6682bf75922fed1b83e5b27a29e7f9084 Roo/data/JsonReader.js --- 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) {