From: Alan Knowles Date: Mon, 10 Feb 2020 06:53:42 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=7cf06f52fa56cad32fa9b50ca231d3dd7b9f79f5 roojs-ui.js roojs-ui-debug.js roojs-bootstrap.js roojs-bootstrap-debug.js roojs-all.js roojs-debug.js Roo/data/ArrayReader.js --- diff --git a/Roo/data/ArrayReader.js b/Roo/data/ArrayReader.js index 96c4f5c750..07c0e5da0b 100644 --- a/Roo/data/ArrayReader.js +++ b/Roo/data/ArrayReader.js @@ -85,14 +85,11 @@ Roo.extend(Roo.data.ArrayReader, Roo.data.JsonReader, { totalRecords : records.length }; }, - /** - * 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) + // used when loading children.. @see loadDataFromChildren + toLoadData: function(rec) { // expect rec just to be an array.. eg [a,b,c, [...] << cn ] - return this.loadData(typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn); + return typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; } diff --git a/roojs-all.js b/roojs-all.js index 9f9bdb919e..4e930533ae 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -946,7 +946,7 @@ return Roo.emptyFn;};}(),readRecords:function(o){this.o=o;var s=this.meta,A=this }this.getRoot=s.root?this.getJsonAccessor(s.root):function(p){return p;};if(s.id){var g=this.getJsonAccessor(s.id);this.getId=function(I){var r=g(I);return (r===undefined||r==="")?null:r;};}else{this.getId=function(){return null;};}this.ef=[];for(var jj=0; jj