Issue #2914718 by droplet, alexpott, nod_, dawehner: JS codestyle: no-empty
parent
58c46869be
commit
7655c87004
|
@ -8,7 +8,6 @@
|
|||
"no-restricted-syntax": "off",
|
||||
"no-new": "off",
|
||||
"no-multi-assign": "off",
|
||||
"no-empty": "off",
|
||||
"no-continue": "off",
|
||||
"new-cap": "off",
|
||||
"max-len": "off",
|
||||
|
|
|
@ -218,15 +218,8 @@
|
|||
// different view mode).
|
||||
.where({ logicalFieldID: currentField.get('logicalFieldID') })
|
||||
.forEach((field) => {
|
||||
// Ignore the current field.
|
||||
if (field === currentField) {
|
||||
|
||||
}
|
||||
// Also ignore other fields with the same view mode.
|
||||
else if (field.get('fieldID') === currentField.get('fieldID')) {
|
||||
|
||||
}
|
||||
else {
|
||||
// Ignore the current field and other fields with the same view mode.
|
||||
if (field !== currentField && field.get('fieldID') !== currentField.get('fieldID')) {
|
||||
otherViewModes.push(field.getViewMode());
|
||||
}
|
||||
});
|
||||
|
|
|
@ -72,9 +72,9 @@
|
|||
var currentField = this;
|
||||
var otherViewModes = [];
|
||||
Drupal.quickedit.collections.fields.where({ logicalFieldID: currentField.get('logicalFieldID') }).forEach(function (field) {
|
||||
if (field === currentField) {} else if (field.get('fieldID') === currentField.get('fieldID')) {} else {
|
||||
otherViewModes.push(field.getViewMode());
|
||||
}
|
||||
if (field !== currentField && field.get('fieldID') !== currentField.get('fieldID')) {
|
||||
otherViewModes.push(field.getViewMode());
|
||||
}
|
||||
});
|
||||
return otherViewModes;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue