Fix eslint array-callback-return in es5 files

[MAILPOET-1146]
This commit is contained in:
Pavel Dohnal
2018-03-01 09:43:18 +00:00
committed by Rostislav Wolný
parent e4b79616ee
commit d89eb07b3c
3 changed files with 2 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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') + '"]'
);