Skip to content

Commit

Permalink
e714bd7e172e04941e2735cff85d7739075aa3be Fix: Handle sparse arrays mo…
Browse files Browse the repository at this point in the history
…re compeltely for the time inbetween a row being removed and it being redrawn

https://datatables.net/forums/discussion/comment/234810/
DataTables/DataTablesSrc@1c48c11

Sync to source repo @e714bd7e172e04941e2735cff85d7739075aa3be
  • Loading branch information
dtbuild committed Sep 6, 2024
1 parent a9818fc commit 46394eb
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.5",
"last-sync": "a9c0b34b645e18588d74e76c7bc0fd8f1d826129"
"last-sync": "e714bd7e172e04941e2735cff85d7739075aa3be"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@
// is essential here
if ( prop2 !== undefined ) {
for ( ; i<ien ; i++ ) {
if ( a[ order[i] ][ prop ] ) {
if ( a[ order[i] ] && a[ order[i] ][ prop ] ) {
out.push( a[ order[i] ][ prop ][ prop2 ] );
}
}
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 @@ -1165,7 +1165,7 @@ var _pluck_order = function ( a, order, prop, prop2 )
// is essential here
if ( prop2 !== undefined ) {
for ( ; i<ien ; i++ ) {
if ( a[ order[i] ][ prop ] ) {
if ( a[ order[i] ] && a[ order[i] ][ prop ] ) {
out.push( a[ order[i] ][ prop ][ prop2 ] );
}
}
Expand Down

0 comments on commit 46394eb

Please sign in to comment.