From 50f7f82b42b3d9de4e6f8d2138f6f0ed2e21bada Mon Sep 17 00:00:00 2001 From: dtbuild Date: Fri, 13 Sep 2024 16:15:23 +0000 Subject: [PATCH] dc6281cf1d880c48904bf6d445a021a5936001bb Fix: A few `let` variables had slipped in, which doesn't work in old Safari https://datatables.net/forums/discussion/79829 Sync to source repo @dc6281cf1d880c48904bf6d445a021a5936001bb --- datatables.json | 2 +- js/dataTables.js | 6 +++--- js/dataTables.mjs | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/datatables.json b/datatables.json index 6119be0..8b60374 100644 --- a/datatables.json +++ b/datatables.json @@ -11,5 +11,5 @@ ], "src-repo": "http://github.com/DataTables/DataTablesSrc", "last-tag": "2.1.6", - "last-sync": "a7e148ff64c424bed3d6e86e91494357a9afba7c" + "last-sync": "dc6281cf1d880c48904bf6d445a021a5936001bb" } \ No newline at end of file diff --git a/js/dataTables.js b/js/dataTables.js index 5c22722..96e5d92 100644 --- a/js/dataTables.js +++ b/js/dataTables.js @@ -3041,8 +3041,8 @@ * @returns */ function _fnGetRowDisplay (settings, rowIdx) { - let rowModal = settings.aoData[rowIdx]; - let columns = settings.aoColumns; + var rowModal = settings.aoData[rowIdx]; + var columns = settings.aoColumns; if (! rowModal.displayData) { // Need to render and cache @@ -7714,7 +7714,7 @@ // Reduce the API instance to the first item found var _selector_first = function ( old ) { - let inst = new _Api(old.context[0]); + var inst = new _Api(old.context[0]); // Use a push rather than passing to the constructor, since it will // merge arrays down automatically, which isn't what is wanted here diff --git a/js/dataTables.mjs b/js/dataTables.mjs index 5daf286..9a89ca8 100644 --- a/js/dataTables.mjs +++ b/js/dataTables.mjs @@ -2988,8 +2988,8 @@ function _fnGetRowElements( settings, row, colIdx, d ) * @returns */ function _fnGetRowDisplay (settings, rowIdx) { - let rowModal = settings.aoData[rowIdx]; - let columns = settings.aoColumns; + var rowModal = settings.aoData[rowIdx]; + var columns = settings.aoColumns; if (! rowModal.displayData) { // Need to render and cache @@ -7661,7 +7661,7 @@ var _selector_opts = function ( opts ) // Reduce the API instance to the first item found var _selector_first = function ( old ) { - let inst = new _Api(old.context[0]); + var inst = new _Api(old.context[0]); // Use a push rather than passing to the constructor, since it will // merge arrays down automatically, which isn't what is wanted here