summaryrefslogtreecommitdiff
path: root/js/form/Select.js
diff options
context:
space:
mode:
authorGreg <supahgreg@users.noreply.github.com>2025-10-13 23:39:24 -0500
committerGitHub <noreply@github.com>2025-10-13 23:39:24 -0500
commit6505cbb592b91556ca25a2bf72ad1d8cb0b3bc2a (patch)
tree8ab133cc17a329ef7d99d152b3f6b4edc3830509 /js/form/Select.js
parent0d2b1d601294802286aa26e5486c1c4fee92c05a (diff)
parent8b46ab31a96b6b6129f624719ac33ddf761805f1 (diff)
Merge pull request #42 from tt-rss/bugfix/eslint-config-and-findings
Get ESLint 9.x working, make the new config stricter, address findings
Diffstat (limited to 'js/form/Select.js')
-rwxr-xr-xjs/form/Select.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/js/form/Select.js b/js/form/Select.js
index 0c73cd52c..c44674e2a 100755
--- a/js/form/Select.js
+++ b/js/form/Select.js
@@ -1,4 +1,3 @@
-/* eslint-disable prefer-rest-params */
/* global define */
// FIXME: there probably is a better, more dojo-like notation for custom data- properties
define(["dojo/_base/declare",
@@ -15,7 +14,7 @@ define(["dojo/_base/declare",
startup: function() {
this.inherited(arguments);
- if (this.attr('data-dropdown-skip-first') == 'true') {
+ if (this.attr('data-dropdown-skip-first') === 'true') {
aspect.before(this, "_loadChildren", () => {
this.options = this.options.splice(1);
});
@@ -25,8 +24,8 @@ define(["dojo/_base/declare",
onItemClick: function(/*item, menu*/) {
//
},
- _setValueAttr: function(/*anything*/ newValue, /*Boolean?*/ priorityChange){
- if (this.attr('data-prevent-value-change') == 'true' && newValue != '')
+ _setValueAttr: function(/*anything*/ newValue, /*Boolean? priorityChange */){
+ if (this.attr('data-prevent-value-change') === 'true' && newValue !== '')
return;
this.inherited(arguments);