line folded
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 14 Dec 2013 14:45:07 +0000 (15:45 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 14 Dec 2013 14:45:07 +0000 (15:45 +0100)
plugins/lists/static/js/simplelist.js

index 3d2c4b9..2bed5b4 100644 (file)
            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]) ]] }) );