X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-ui-debug.js;h=97728775f41c2e09afad72fa0ad65f02cde533e1;hb=a9c6689b8f08a9e7288ba4df9bc2821b77763806;hp=b451f6160650c769406323a8a0af8aa3508bb225;hpb=6a66c86a8ba7543f771d16d33de71d1d55f88899;p=roojs1 diff --git a/roojs-ui-debug.js b/roojs-ui-debug.js index b451f61606..97728775f4 100644 --- a/roojs-ui-debug.js +++ b/roojs-ui-debug.js @@ -2204,12 +2204,12 @@ Roo.extend(Roo.data.ArrayReader, Roo.data.JsonReader, { }, /** * using 'cn' the nested child reader read the child array into it's child stores. - * + * @param {Object} rec The record with a 'children array */ loadDataFromChildren: function(rec) { // expect rec just to be an array.. eg [a,b,c, [...] << cn ] - return this.loadData(rec.data.cn); + return this.loadData(typeof(rec.data.cn) == 'undefined' ? '' : rec.data.cn); }