I have a page using jquery-ui-dialog. Each time the dialog opens, page contents load in using ajax. Then it binds some event using jquery \"on()\". When the dialog close,
It's better to unbind but must.
Most browsers handle this correctly and remove those handlers themselves.
You can also see do-i-need-to-remove-event-listeners
Better way to handle this problem, you can use the Event Delegate.