mirror of
https://github.com/DataTables/DataTables.git
synced 2024-11-29 11:24:10 +01:00
1447c26a78
When the table was being destroyed and the remove parameter was passed in as `true` to remove the table from the DOM there was potential for bound events to not be unbound from the table elements. This was caused by the use of the `detach` jQuery method which will not remove events. Furthermore, rows would not be added to the table before this method (or `remove()`) was called. As such we need to reorder the code slightly - attach the rows back into the DOM and then remove them (or detach if the table is left in the DOM) - otherwise rows which were hidden by paging would not have their events unbound. Many thanks for KnowledgeNet ( http://kn-it.com/ ) for their support in finding and allowing this bug to be addressed! |
||
---|---|---|
.. | ||
css | ||
images | ||
js | ||
unit_testing |