bug: $ionicModal show/hide causes event handler leak
Type: bug
Platform: all
In ModalView.show() an anonymous resize event handler is registered.
Later on, in ModalView.hide(), the resize event is removed, using null as the callback argument to ionic.off().
This does not remove the event handler, causing the resize handler to be called a growing amount of times as the modal is shown/hidden.
The correct way of doing this is to use a named function as the callback argument.
Greetings @hravnx!
I've closed this issue because my sensors indicated it was old and inactive, and may have already been fixed in recent versions of Ionic. However, if you are still experiencing this issue, please feel free to reopen this issue by creating a new one, and include any examples and other necessary information, so that we can look into it further.
Thank you for allowing me to assist you.