Skip to content

Commit

Permalink
d7fdab4d358a0beff9bc8eaf0139ada406293255 Fix: Very old Safari (7/8) d…
Browse files Browse the repository at this point in the history
…oesn't support `Array.from` which was used in one unprotected position. Support for DataTables is the main browsers for the last 10 years, so this has been addressed.

Sync to source repo @d7fdab4d358a0beff9bc8eaf0139ada406293255
  • Loading branch information
dtbuild committed Oct 21, 2024
1 parent 21903d9 commit 850d5ea
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 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.8",
"last-sync": "daa37b2f01e288acbfbff1e019cd3b9f44aeec7c"
"last-sync": "d7fdab4d358a0beff9bc8eaf0139ada406293255"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -13526,7 +13526,7 @@

// Save text node content for macro updating
var textNodes = [];
Array.from(div.find('label')[0].childNodes).forEach(function (el) {
Array.prototype.slice.call(div.find('label')[0].childNodes).forEach(function (el) {
if (el.nodeType === Node.TEXT_NODE) {
textNodes.push({
el: el,
Expand Down
2 changes: 1 addition & 1 deletion js/dataTables.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.min.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/dataTables.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13473,7 +13473,7 @@ DataTable.feature.register( 'pageLength', function ( settings, opts ) {

// Save text node content for macro updating
var textNodes = [];
Array.from(div.find('label')[0].childNodes).forEach(function (el) {
Array.prototype.slice.call(div.find('label')[0].childNodes).forEach(function (el) {
if (el.nodeType === Node.TEXT_NODE) {
textNodes.push({
el: el,
Expand Down

0 comments on commit 850d5ea

Please sign in to comment.