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