fnGetPosition in 1.10.0-dev

fnGetPosition in 1.10.0-dev

tstartstar Posts: 36Questions: 0Answers: 0
edited August 2013 in General
[code]
"fnInitComplete": function () {
$('#Test tbody tr').on('click', function () {
var aPos = oTable.fnGetPosition(this);
alert(aPos);
});
[/code]
This code works fine in version 1.9.4, but in the version 1.10.0-dev works only for a page which is visible during initialization table. In other pages nothing happens and no errors. I'm doing something wrong? Thank you.

Replies

  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin
    No you aren't - that looks like an error in 1.10's backwards compatibility layer. I'll take a look and see if I can get a fix shortly.

    Allan
  • allanallan Posts: 63,514Questions: 1Answers: 10,472 Site admin
    I was mistaken, there doesn't appear to be an error in 1.10 - but rather in the code you are using to add static events rather than delegated ones. I've added a comment in your duplicate issue in github: https://github.com/DataTables/DataTables/issues/221 .
This discussion has been closed.