Bug in .destroy() when deferrender is used

Bug in .destroy() when deferrender is used

RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
edited December 2013 in Bug reports
(I'm using the last version of DT available on GitHub)
When calling .destroy(), this line is crashing

[code]$( rows ).removeClass( settings.asStripeClasses.join(' ') );[/code]

because when deferrender is on, some of the rows are null, so we first need to filter these out like this (or any other way you prefer)

[code]$( rows ).filter(function() {
return this != null;
}) .removeClass( settings.asStripeClasses.join(' ') );[/code]

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,470 Site admin
    Nice one! Thanks for this :-). Just committed the fix for this and its in the built repo now.

    Allan
  • RagingTrollRagingTroll Posts: 34Questions: 3Answers: 0
    Great! Thank you for taking the time :)
This discussion has been closed.