potential meory leak: TableTools master instances not getting destroyed
potential meory leak: TableTools master instances not getting destroyed
stwi
Posts: 10Questions: 0Answers: 0
Hi,
It looks like I can destroy a DataTable, but I can not destroy the TableTools instance that gets created together with the DataTable.
After calling "fnDestroy(true)" on a DataTable I call "$.fn.dataTable.fnTables(true)" and I will get an empty list. But calling afterwards "TableTools.fnGetMasters()" will return a list with one element, which is the TableTools instance for the table that I have actually destroyed.
If I create a new DataTable after having destroyed the previous table with "fnDestroy(true)" I end up with 2 master instances of TableTools being reported by "$.fn.dataTable.fnTables(true)". In fact for each time that I destroy and re-create my table I get an additional instance of Table Tools, so the number of TableTools instances keeps growing even though I always have only one table.
Regards,
Stephan
[[This is a repost of something I posted to the TableTools forum. I thought it would be more appropriate in here, but was not longer allowed to edit my original posting.]]
It looks like I can destroy a DataTable, but I can not destroy the TableTools instance that gets created together with the DataTable.
After calling "fnDestroy(true)" on a DataTable I call "$.fn.dataTable.fnTables(true)" and I will get an empty list. But calling afterwards "TableTools.fnGetMasters()" will return a list with one element, which is the TableTools instance for the table that I have actually destroyed.
If I create a new DataTable after having destroyed the previous table with "fnDestroy(true)" I end up with 2 master instances of TableTools being reported by "$.fn.dataTable.fnTables(true)". In fact for each time that I destroy and re-create my table I get an additional instance of Table Tools, so the number of TableTools instances keeps growing even though I always have only one table.
Regards,
Stephan
[[This is a repost of something I posted to the TableTools forum. I thought it would be more appropriate in here, but was not longer allowed to edit my original posting.]]
This discussion has been closed.