mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-30 23:52:11 +01:00
Dev fix: Destroy wasn't working when using deferred rendering
- The _pluck() function that was being used to get the tr elements didn't remove nulls, while jQuery doesn't like removing a class from! - Thanks to `RagingTroll` in the forums for spotting this: http://datatables.net/forums/discussion/18651
This commit is contained in:
parent
18c53eaed5
commit
dd1e7600ac
@ -1 +1 @@
|
|||||||
118619e940c35fea478e5bfe6c3ebc66d8c83923
|
a2dd5b40d76ce4522b126827c725fdf5fd3d608a
|
||||||
|
2
media/js/jquery.dataTables.js
vendored
2
media/js/jquery.dataTables.js
vendored
@ -8422,7 +8422,7 @@
|
|||||||
var jqTable = $(table);
|
var jqTable = $(table);
|
||||||
var jqTbody = $(tbody);
|
var jqTbody = $(tbody);
|
||||||
var jqWrapper = $(settings.nTableWrapper);
|
var jqWrapper = $(settings.nTableWrapper);
|
||||||
var rows = _pluck( settings.aoData, 'nTr' );
|
var rows = $.map( settings.aoData, function (r) { return r.nTr; } );
|
||||||
var i, ien;
|
var i, ien;
|
||||||
|
|
||||||
// Flag to note that the table is currently being destroyed - no action
|
// Flag to note that the table is currently being destroyed - no action
|
||||||
|
Loading…
x
Reference in New Issue
Block a user