diff options
author | Andrew Dolgov <[email protected]> | 2021-02-12 19:02:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-12 19:02:09 +0300 |
commit | 7f0800537e8268dcbc4fce19f38fcbaa3d78a1cd (patch) | |
tree | d80b1c1a4194265c4c340661a1388f77c2a048c1 /js/PrefLabelTree.js | |
parent | ad7842c98af21bf400c0f347455a3a8432c01140 (diff) |
silence (or fix) a bunch of eslint warnings
Diffstat (limited to 'js/PrefLabelTree.js')
-rw-r--r-- | js/PrefLabelTree.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js index eab1a643b..73f375f2d 100644 --- a/js/PrefLabelTree.js +++ b/js/PrefLabelTree.js @@ -1,3 +1,4 @@ +/* eslint-disable prefer-rest-params */ /* global __, define, lib, dijit, dojo, xhrPost, Notify, fox */ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare, domConstruct) { @@ -39,6 +40,7 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/f return tnode; }, getIconClass: function (item, opened) { + // eslint-disable-next-line no-nested-ternary return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible"; }, getSelectedLabels: function() { |