Rename private attribute _element to _el
Change-Id: I9c7a31bd6844636737ffa6456562b997f5e370a3
diff --git a/dev/js/src/plugin/server.js b/dev/js/src/plugin/server.js
index 19f8c5f..bc4eaaa 100644
--- a/dev/js/src/plugin/server.js
+++ b/dev/js/src/plugin/server.js
@@ -544,11 +544,11 @@
* Return the service element.
*/
element : function () {
- if (!this._element) {
- this._element = document.createElement('div');
- this._element.setAttribute("id", "services");
+ if (!this._el) {
+ this._el = document.createElement('div');
+ this._el.setAttribute("id", "services");
}
- return this._element;
+ return this._el;
},
// Destructor, just for testing scenarios
@@ -565,12 +565,12 @@
b => buttonsSingle[b] = []
);
- if (this._element) {
- let e = this._element;
+ if (this._el) {
+ let e = this._el;
if (e.parentNode) {
e.parentNode.removeChild(e);
};
- this._element = null;
+ this._el = null;
};
this._removeListener();
diff --git a/dev/js/src/plugin/widget.js b/dev/js/src/plugin/widget.js
index 5f8ca9a..48cc393 100644
--- a/dev/js/src/plugin/widget.js
+++ b/dev/js/src/plugin/widget.js
@@ -32,8 +32,8 @@
show : function () {
if (this._load) {
- if (this._element)
- this._element.classList.add('show');
+ if (this._el)
+ this._el.classList.add('show');
return this._load;
}