tables(0) returns all tables

tables(0) returns all tables

kthorngrenkthorngren Posts: 21,352Questions: 26Answers: 4,955

Using tables(0) returns all table API instances where tables(1) returns a single table. My expectation is tables(0) will retrun only the first table. Here is the example:
http://live.datatables.net/wiragogo/1/edit

Ordering tables(0) orders all the tables but ordering tables(1) orders only the second table.

Kevin

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    Yep, agreed, something odd going on there - the table-selector doesn't seem to respond to arrays either, which it should. I've raised it internally (DD-1403 for my reference) and we'll report back here when there's an update.

    Colin

    p.s. happy Easter to you and yours :)

  • kthorngrenkthorngren Posts: 21,352Questions: 26Answers: 4,955

    Thanks. Happy Easter to you and your family!

    Kevin

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin

    Hi Kevin,

    Many thanks for the excellent test case, as always. Took me right to the source of the error. I've committed a fix for it now and it will be in the nightly build shortly (rebuilds take about 10 minutes).

    Allan

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    ... and unit tests updated so it'll get caught in the future

    Colin

This discussion has been closed.