$.fn.DataTable.isDataTable returns false when DT is initialized

$.fn.DataTable.isDataTable returns false when DT is initialized

ghg_snakeghg_snake Posts: 3Questions: 1Answers: 0

This is my code: http://jsfiddle.net/wL9agms8/

Why does isDataTable return false in this case?

This question has an accepted answers - jump to answer

Answers

  • ghg_snakeghg_snake Posts: 3Questions: 1Answers: 0
    edited November 2014

    It works as expected if I change <table class="holder-2"> to <table id="holder-2"> and change the script accordingly. But why, though?

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin
    Answer ✓

    Hi,

    Thanks for the test case! There was a bug in DataTables in the $.fn.dataTable.isDataTable() method. I've just committed the fix and the nightly is now up-to-date.

    Updated test case - links to the nightly.

    Regards,
    Allan

  • ghg_snakeghg_snake Posts: 3Questions: 1Answers: 0

    Thank you kindly!

This discussion has been closed.