Fix miscellaneous deprecated methods [MAILPOET-3386]

This commit is contained in:
wxa
2021-02-18 19:07:36 +03:00
committed by Veljko V
parent be320ad995
commit 3b12ea0989
3 changed files with 4 additions and 4 deletions

View File

@@ -231,8 +231,8 @@ MailPoet.Modal = {
return this;
},
removeEvents: function () {
jQuery(document).unbind('keyup.mailpoet_modal');
jQuery(window).unbind('resize.mailpoet_modal');
jQuery(document).off('keyup.mailpoet_modal');
jQuery(window).off('resize.mailpoet_modal');
jQuery('#mailpoet_modal_close').off('click');
if (this.options.overlay === true) {
jQuery('#mailpoet_modal_overlay').off('click');