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

@@ -183,7 +183,7 @@ MailPoet.Notice = {
if (all !== undefined && all === true) {
// all notices
jQuery('.mailpoet_notice:not([id])').trigger('close');
} else if (all !== undefined && jQuery.isArray(all)) {
} else if (all !== undefined && Array.isArray(all)) {
// array of ids
Object.keys(all).forEach(function close(id) {
jQuery('[data-id="' + all[id] + '"]').trigger('close');