Skip to content

Commit

Permalink
dc6281cf1d880c48904bf6d445a021a5936001bb Fix: A few let variables h…
Browse files Browse the repository at this point in the history
…ad slipped in, which doesn't work in old Safari

https://datatables.net/forums/discussion/79829

Sync to source repo @dc6281cf1d880c48904bf6d445a021a5936001bb
  • Loading branch information
dtbuild committed Sep 13, 2024
1 parent adbc60d commit 50f7f82
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion datatables.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
],
"src-repo": "http://github.com/DataTables/DataTablesSrc",
"last-tag": "2.1.6",
"last-sync": "a7e148ff64c424bed3d6e86e91494357a9afba7c"
"last-sync": "dc6281cf1d880c48904bf6d445a021a5936001bb"
}
6 changes: 3 additions & 3 deletions js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 50f7f82

Please sign in to comment.