ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

bug: $ionicModal show/hide causes event handler leak

Open hravnx opened this issue 11 years ago • 1 comments

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.

hravnx avatar Jan 29 '15 21:01 hravnx

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.

Ionitron avatar May 26 '15 16:05 Ionitron