Rename private attribute _element to _el
Change-Id: I9c7a31bd6844636737ffa6456562b997f5e370a3
diff --git a/dev/js/src/hint/alert.js b/dev/js/src/hint/alert.js
index c8d7696..7847af2 100644
--- a/dev/js/src/hint/alert.js
+++ b/dev/js/src/hint/alert.js
@@ -19,9 +19,9 @@
const t = this;
t._type = 'alert';
t.active = false;
- t._element = document.createElement('div');
- t._element.style.display = 'none';
- t._element.classList.add('alert', 'hint');
+ t._el = document.createElement('div');
+ t._el.style.display = 'none';
+ t._el.classList.add('alert', 'hint');
return t;
},
@@ -31,7 +31,7 @@
*/
show : function (msg) {
this.active = true;
- const e = this._element;
+ const e = this._el;
e.textContent = msg;
e.style.display = 'block';
},
@@ -43,7 +43,7 @@
hide : function () {
if (!this.active)
return false;
- this._element.style.display = 'none';
+ this._el.style.display = 'none';
this.active = false;
return true;
},
@@ -53,7 +53,7 @@
* Get alert object.
*/
element : function () {
- return this._element;
+ return this._el;
}
}
});