Fix eslint array-callback-return in es5 files
[MAILPOET-1146]
This commit is contained in:
committed by
Rostislav Wolný
parent
e4b79616ee
commit
d89eb07b3c
@@ -36,7 +36,7 @@ function exportMixpanel(mp) {
|
||||
}
|
||||
|
||||
function trackCachedEvents() {
|
||||
eventsCache.map(function trackIfEnabled(event) {
|
||||
eventsCache.forEach(function trackIfEnabled(event) {
|
||||
if (window.mailpoet_analytics_enabled || event.forced) {
|
||||
window.mixpanel.track(event.name, event.data);
|
||||
}
|
||||
|
@@ -471,7 +471,7 @@ WysijaForm = {
|
||||
|
||||
// loop through each unique field already inserted in the editor
|
||||
// and disable its toolbar equivalent
|
||||
window.$$('#' + WysijaForm.options.editor + ' [wysija_unique="1"]').map(function (element) {
|
||||
window.$$('#' + WysijaForm.options.editor + ' [wysija_unique="1"]').forEach(function (element) {
|
||||
var field = window.$$(
|
||||
'#' + WysijaForm.options.toolbar + ' [wysija_id="' + element.readAttribute('wysija_id') + '"]'
|
||||
);
|
||||
|
Reference in New Issue
Block a user