From 7b5377cebc7b19f494c0f0763fbf5644cdfb1a81 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 10 Feb 2020 14:53:17 +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/JsonReader.js --- Roo/data/JsonReader.js | 9 +++------ roojs-all.js | 24 ++++++++++++------------ roojs-debug.js | 2 +- roojs-ui-debug.js | 2 +- roojs-ui.js | 24 ++++++++++++------------ 5 files changed, 29 insertions(+), 32 deletions(-) diff --git a/Roo/data/JsonReader.js b/Roo/data/JsonReader.js index 568d2842f6..98c8ce888c 100644 --- a/Roo/data/JsonReader.js +++ b/Roo/data/JsonReader.js @@ -211,15 +211,12 @@ Roo.extend(Roo.data.JsonReader, Roo.data.DataReader, { totalRecords : totalRecords }; }, - /** - * 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 ] var data = typeof(rec.data.cn) == 'undefined' ? [] : rec.data.cn; - return this.loadData({ data : data, total : data.length }); + return { data : data, total : data.length }; } }); \ No newline at end of file diff --git a/roojs-all.js b/roojs-all.js index 031f3b41da..9f9bdb919e 100644 --- a/roojs-all.js +++ b/roojs-all.js @@ -894,18 +894,18 @@ for(var i=0,B=A.length;iv2?1:(v1v2?1:(v1v2?1:(v1v2?1:(v1