Memory leak on ui-grid-menu showMenu
Hi,
On ui-grid-menu.js, there are 2 methods showMenu and hideMenu that are added to scope but also are added to some self variable that happens to be the ``window` object.
The problem is that in a spa app, navigating away from the list, on the window object that is not going to be destroyed, the 2 functions will remain with the scope as context variable, so all the grid objects, columns, rows will be carried through the rest of the journey.
The 2 functions seem to be used only through scope, so no need for them on the ``window` ... at least to the point I got now.
this memory leak was fixed by this commit.
https://github.com/angular-ui/ui-grid/commit/b031a3d400e26a398d13a45c2ac3964797999c8c#diff-2426849a638758e77f84bf31862698da
the references to the self variable are removed and these functions are only available on the $scope as of Nov '15