Grid destructor() method breaks when the grid changes

I have a grid.destructor() method the calls every time I want to remove the grid. The problem is that whenever I filter the grid through the solumn text filter or resize the columns, I get a an error of “Uncaught TypeError: object is not a function” where “object” is the grid.destructor() method.

Is this a bug? Can you guys replicated locally on your end? If it’s not a bug at least I know I’ll need to fix my code somewhere.

Unfortunately cannot replicate the similar behavior.
Please, provide with any kind of sample of your code, so the reason of the issue can be found and eliminated.