From c1c3a70229279cdd36c1a641525ff3ccdb32fa5f Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Sat, 14 Dec 2013 15:45:07 +0100 Subject: [PATCH] line folded --- plugins/lists/static/js/simplelist.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/lists/static/js/simplelist.js b/plugins/lists/static/js/simplelist.js index 3d2c4b9c..2bed5b43 100644 --- a/plugins/lists/static/js/simplelist.js +++ b/plugins/lists/static/js/simplelist.js @@ -110,7 +110,8 @@ if (debug) messages.debug('datatables_update_table ' + rows.length + " rows"); $table.dataTable().fnClearTable(); // the lambda here returns a [[]] because $.map is kind of broken; as per the doc: - // The function can return any value to add to the array. A returned array will be flattened into the resulting array. + // The function can return any value to add to the array. + // A returned array will be flattened into the resulting array. // this is wrong indeed so let's work around that var self=this; $table.dataTable().fnAddData( $.map(rows, function (row) { return [[ self._cell (key,row[key]) ]] }) ); -- 2.43.0