fnDestroy isn't complete

fnDestroy isn't complete

peterkronenbergpeterkronenberg Posts: 112Questions: 0Answers: 0
edited November 2010 in General
Allan,
I am finding that fnDestroy isn't doing a good job of destroying the table. I think this problem got worse with 1.74, but I'm not sure. It doesn't destroy the FixedHeader. And it's also doing something weird with the dataTables_wrapper. It is moving it *before* the html tag. And there are two of them. Here's a Firebug screen shot of the HTML so you can see what I'm talking about: http://dl.dropbox.com/u/4104018/fnDestroy_screenshot.png

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    fnDestroy is a DataTables function and doesn't know anything about the plug-ins that might be using it - it could dispatch an event (it probably should - but that's something for DataTables 2 in future) to say that it has fired. So really it's FixedHeader which isn't doing everything required - indeed there isn't a destroy option for it at the moment, something I'll look at adding in future. For now you could just remove the DOM element and null any reference you have to the FixedHeader instance.

    I'm not seeing the issue with dataTables_wrapper and I don't really see how that would be possible :-). Very odd indeed.

    Allan
  • peterkronenbergpeterkronenberg Posts: 112Questions: 0Answers: 0
    Did you look at the screen shot I posted regarding dataTables_wrapper?
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Yes indeed - and I can't figure that out, nor can I reproduce it. I've never seen anything quite like that screenshot before...

    Allan
This discussion has been closed.