Rename private attribute _element to _el
Change-Id: I9c7a31bd6844636737ffa6456562b997f5e370a3
diff --git a/dev/js/src/buttongroup.js b/dev/js/src/buttongroup.js
index 0ea1d38..85543e4 100644
--- a/dev/js/src/buttongroup.js
+++ b/dev/js/src/buttongroup.js
@@ -18,7 +18,7 @@
cl.add.apply(cl,classes);
};
cl.add('button-group');
- this._element = e;
+ this._el = e;
return this;
},
@@ -27,7 +27,7 @@
* Return main element
*/
element : function () {
- return this._element;
+ return this._el;
},
@@ -52,7 +52,7 @@
*/
add : function (title, data, cb) {
- const b = this._element.addE('span');
+ const b = this._el.addE('span');
b.setAttribute('title',title);
if (data !== undefined) {
@@ -107,7 +107,7 @@
* The state has to be a state object.
*/
addToggle : function (title, data, state) {
- const b = this._element.addE('span');
+ const b = this._el.addE('span');
b.setAttribute('title',title);
if (data != undefined) {
@@ -168,7 +168,7 @@
* Remove all defined buttons
*/
clear : function () {
- _removeChildren(this._element);
+ _removeChildren(this._el);
return this;
}
}