summaryrefslogtreecommitdiff
path: root/js/PrefLabelTree.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-11-29 21:21:06 +0300
committerAndrew Dolgov <[email protected]>2018-11-29 21:21:06 +0300
commit02672124540518006cf159446a9f62a9f5b94aa5 (patch)
treed4c77a997632ab2923e88147bdbf0d56ad7514b6 /js/PrefLabelTree.js
parent9dc5524df1a91252eee3247d2b8b2549df79150f (diff)
move to let/const syntax in custom dojo modules
Diffstat (limited to 'js/PrefLabelTree.js')
-rw-r--r--js/PrefLabelTree.js15
1 files changed, 8 insertions, 7 deletions
diff --git a/js/PrefLabelTree.js b/js/PrefLabelTree.js
index 2215dcdb0..7321b80d8 100644
--- a/js/PrefLabelTree.js
+++ b/js/PrefLabelTree.js
@@ -1,23 +1,24 @@
+/* global lib,dijit */
define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree", "dijit/form/DropDownButton"], function (declare, domConstruct) {
return declare("fox.PrefLabelTree", lib.CheckBoxTree, {
setNameById: function (id, name) {
- var item = this.model.store._itemsByIdentity['LABEL:' + id];
+ const item = this.model.store._itemsByIdentity['LABEL:' + id];
if (item)
this.model.store.setValue(item, 'name', name);
},
_createTreeNode: function(args) {
- var tnode = this.inherited(arguments);
+ const tnode = this.inherited(arguments);
- var fg_color = this.model.store.getValue(args.item, 'fg_color');
- var bg_color = this.model.store.getValue(args.item, 'bg_color');
- var type = this.model.store.getValue(args.item, 'type');
- var bare_id = this.model.store.getValue(args.item, 'bare_id');
+ const fg_color = this.model.store.getValue(args.item, 'fg_color');
+ const bg_color = this.model.store.getValue(args.item, 'bg_color');
+ const type = this.model.store.getValue(args.item, 'type');
+ const bare_id = this.model.store.getValue(args.item, 'bare_id');
if (type == 'label') {
- var span = dojo.doc.createElement('span');
+ const span = dojo.doc.createElement('span');
span.innerHTML = '&alpha;';
span.className = 'labelColorIndicator';
span.id = 'LICID-' + bare_id;