summaryrefslogtreecommitdiff
path: root/js/form/Select.js
diff options
context:
space:
mode:
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);