Method Destroy many datatables in same page
Method Destroy many datatables in same page
thiagoprogramar
Posts: 3Questions: 1Answers: 0
I have in my page, many tables. They are initialized with DataTables jquery with keytable plugins. When i use method $("#mytable1").DataTable().destroy()
in a espefic table, all others lose keytable. Anybody know why this happing?
This discussion has been closed.
Answers
Tried it with this test case:
http://live.datatables.net/vinerahu/2/edit
The problem described is replicated.
Kevin
Yes Kevin, this is my problem.
@allan or @colin should look at the test case to start working on the issue.
Kevin
Yep, I've pushed this onto Allan - it'll give him something to do
Thank you guys, i'll wait for it.
Thanks for the test case Kevin. And for reporting the issue @thiagoprogramar. It is being caused by this. It is removing all event listeners added by any KeyTable instance, rather than just one specific to that instance.
I'll get that fixed and post back when done.
Alla
Finally committed and it will be in the nightly shortly, and then in the next release.
Allan