- Linting (ESLint): Remove now unneeded config and add per new update
- Refactoring: Prefer for-of, event.key (newly enforced linting) - Refactoring: Better var. names - npm: Update devDeps and update local copies
This commit is contained in:
@@ -192,8 +192,8 @@ function jQueryContextMenu ($) {
|
||||
$(this).each(function () {
|
||||
if (o !== undefined) {
|
||||
const d = o.split(',');
|
||||
for (let i = 0; i < d.length; i++) {
|
||||
$(this).find('A[href="' + d[i] + '"]').parent().addClass('disabled');
|
||||
for (const href of d) {
|
||||
$(this).find('A[href="' + href + '"]').parent().addClass('disabled');
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -215,8 +215,8 @@ function jQueryContextMenu ($) {
|
||||
$(this).each(function () {
|
||||
if (o !== undefined) {
|
||||
const d = o.split(',');
|
||||
for (let i = 0; i < d.length; i++) {
|
||||
$(this).find('A[href="' + d[i] + '"]').parent().removeClass('disabled');
|
||||
for (const href of d) {
|
||||
$(this).find('A[href="' + href + '"]').parent().removeClass('disabled');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user