Skip to content

Commit

Permalink
4652edd0ac3e010443a6ec392c94a62d6e424cb5 Dev: State object should be …
Browse files Browse the repository at this point in the history
…100% independent from the DT settings.

Error was caught by StateRestore unit tests whereby the ordering was not
independent - the order array was retained between states.

Sync to source repo @4652edd0ac3e010443a6ec392c94a62d6e424cb5
  • Loading branch information
dtbuild committed Jan 6, 2025
1 parent afabc89 commit f95be84
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": "8e155b3eca39175eec7e9c1fe3ecb273e63a438b"
"last-sync": "4652edd0ac3e010443a6ec392c94a62d6e424cb5"
}
2 changes: 1 addition & 1 deletion js/dataTables.js
Original file line number Diff line number Diff line change
Expand Up @@ -6191,7 +6191,7 @@
// If a column name is available, use it
return columns[sort[0]] && columns[sort[0]].sName
? [ columns[sort[0]].sName, sort[1] ]
: sort;
: sort.slice();
} ),
search: $.extend({}, settings.oPreviousSearch),
columns: settings.aoColumns.map( function ( col, i ) {
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 @@ -6156,7 +6156,7 @@ function _fnSaveState ( settings )
// If a column name is available, use it
return columns[sort[0]] && columns[sort[0]].sName
? [ columns[sort[0]].sName, sort[1] ]
: sort;
: sort.slice();
} ),
search: $.extend({}, settings.oPreviousSearch),
columns: settings.aoColumns.map( function ( col, i ) {
Expand Down

0 comments on commit f95be84

Please sign in to comment.