I defined a global Javascript function:
function resizeDashBoardGridTable(gridID){ var table = document.getElementById(\'treegrid_\'+gridID); .....
The simplest approach is to set the function (treat it as a variable) to null. This works even if you don't declare it as a var. Verified this on IE.
var
resizeDashBoardGridTable = null