From: Alan Knowles Date: Mon, 10 Feb 2020 06:53:17 +0000 (+0800) Subject: roojs-ui.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=7b5377cebc7b19f494c0f0763fbf5644cdfb1a81 roojs-ui.js roojs-ui-debug.js roojs-bootstrap.js roojs-bootstrap-debug.js roojs-all.js roojs-debug.js Roo/data/JsonReader.js --- 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