projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b4956f1
)
Roo/data/JsonReader.js
author
Edward
<edward@roojs.com>
Fri, 15 May 2015 04:43:43 +0000
(12:43 +0800)
committer
Edward
<edward@roojs.com>
Fri, 15 May 2015 04:43:43 +0000
(12:43 +0800)
Roo/data/JsonReader.js
patch
|
blob
|
history
diff --git
a/Roo/data/JsonReader.js
b/Roo/data/JsonReader.js
index
4efd1fb
..
3c95200
100644
(file)
--- 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) {