Rename private attribute _element to _el
Change-Id: I9c7a31bd6844636737ffa6456562b997f5e370a3
diff --git a/dev/js/src/vc.js b/dev/js/src/vc.js
index 7bf0d34..2c068ee 100644
--- a/dev/js/src/vc.js
+++ b/dev/js/src/vc.js
@@ -313,13 +313,13 @@
*/
element : function() {
const t = this;
- let e = t._element;
+ let e = t._el;
if (e !== undefined)
return e;
- e = t._element = document.createElement('div');
+ e = t._el = document.createElement('div');
e.classList.add('vc');
@@ -343,7 +343,7 @@
t.addVcInfPanel();
//Adds EventListener for corpus changes
- t._element.addEventListener('vcChange', function (e) {
+ t._el.addEventListener('vcChange', function (e) {
this.checkStatActive(e.detail);
}.bind(t), false);
@@ -355,9 +355,9 @@
* Check, if the VC is open
*/
isOpen : function () {
- if (!this._element)
+ if (!this._el)
return false;
- return this._element.classList.contains('active');
+ return this._el.classList.contains('active');
},
@@ -506,7 +506,7 @@
addVcInfPanel : function () {
// Create panel
this.panel = vcPanelClass.create(this);
- this._element.addE('div').appendChild(this.panel.element());
+ this._el.addE('div').appendChild(this.panel.element());
},