colReorder fnDestroy() bug

colReorder fnDestroy() bug

infoMattinfoMatt Posts: 1Questions: 0Answers: 0

Dear community,
thanks for the excellent product!

I've spotted a bug in the colReorder extension, supplied in version 10.5, in particular in the fnDestroy() function. The bug happens if the code calls the destroy method of the extension, and then destroys the whole table; in this case, the "this.s" property of the extension itself is null.

The bug can be resolved simply by adding

        if (!this.s)
            return;

before the for statement, line 1095.

I hope this might be useful to someone else...

Replies

  • allanallan Posts: 63,678Questions: 1Answers: 10,497 Site admin

    So just to check, you are destroying ColReorder, and then destroying the DataTable? How are you doing that, as ColReorder doesn't have a public destroy function. The only way to destroy it should be by destroying the DataTable.

    Allan

This discussion has been closed.