Rename private attribute _element to _el
Change-Id: I9c7a31bd6844636737ffa6456562b997f5e370a3
diff --git a/dev/js/src/vc/unspecified.js b/dev/js/src/vc/unspecified.js
index fe089a3..5bda78c 100644
--- a/dev/js/src/vc/unspecified.js
+++ b/dev/js/src/vc/unspecified.js
@@ -78,11 +78,11 @@
update : function () {
const t = this;
- if (t._element === undefined)
+ if (t._el === undefined)
return t.element();
// Remove element content
- _removeChildren(t._element);
+ _removeChildren(t._el);
const ellipsis = document.createElement('span');
ellipsis.addT(loc.EMPTY);
@@ -90,16 +90,16 @@
// Click on empty criterion
ellipsis.addEventListener('click', t.onclick.bind(t));
- t._element.appendChild(ellipsis);
+ t._el.appendChild(ellipsis);
// Set ref - TODO: Cleanup!
- t._element.refTo = t;
+ t._el.refTo = t;
// Set operators
if (t._parent !== undefined &&
t.parent().ldType() !== null) {
- t._element.appendChild(
+ t._el.appendChild(
t.operators(
false,
false,
@@ -117,12 +117,12 @@
*/
element : function () {
const t = this;
- if (t._element !== undefined)
- return t._element;
- t._element = document.createElement('div');
- t._element.setAttribute('class', 'doc unspecified');
+ if (t._el !== undefined)
+ return t._el;
+ t._el = document.createElement('div');
+ t._el.setAttribute('class', 'doc unspecified');
t.update();
- return t._element;
+ return t._el;
},
@@ -140,9 +140,9 @@
const menu = KorAP._vcKeyMenu;
// Add key menu element at the correct position
- this._element.insertBefore(
+ this._el.insertBefore(
menu.element(),
- this._element.firstChild
+ this._el.firstChild
);
const that = this;