From 7cf06f52fa56cad32fa9b50ca231d3dd7b9f79f5 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 10 Feb 2020 14:53:42 +0800 Subject: [PATCH] roojs-ui.js roojs-ui-debug.js roojs-bootstrap.js roojs-bootstrap-debug.js roojs-all.js roojs-debug.js Roo/data/ArrayReader.js --- Roo/data/ArrayReader.js | 9 +++------ roojs-all.js | 4 ++-- roojs-bootstrap-debug.js | 13 +++++-------- roojs-bootstrap.js | 4 ++-- roojs-debug.js | 13 +++++-------- roojs-ui-debug.js | 13 +++++-------- roojs-ui.js | 4 ++-- 7 files changed, 24 insertions(+), 36 deletions(-) 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