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;
     }
   }
 });
diff --git a/dev/js/src/hint/input.js b/dev/js/src/hint/input.js
index d779776..cabaa84 100644
--- a/dev/js/src/hint/input.js
+++ b/dev/js/src/hint/input.js
@@ -19,7 +19,7 @@
 
     // Initialize new input field
     _init : function (element) {
-      this._element = element;
+      this._el = element;
 
       this._container = document.createElement("div");
       this._container.setAttribute('id', 'hint');
@@ -38,7 +38,7 @@
       // Update position of the mirror
       const re = this.reposition.bind(this);
       window.addEventListener('resize', re);
-      this._element.addEventListener('onfocus', re);
+      this._el.addEventListener('onfocus', re);
       this.reposition();
       return this;
     },
@@ -68,7 +68,7 @@
      * hint helper is attached to.
      */
     element : function () {
-      return this._element;
+      return this._el;
     },
 
 
@@ -77,7 +77,7 @@
      * the hint helper is attached to.
      */
     value : function () {
-      return this._element.value;
+      return this._el.value;
     },
 
 
@@ -93,7 +93,7 @@
      * Reset the input value
      */
     reset : function () {
-      this._element.value = "";
+      this._el.value = "";
     },
 
 
@@ -114,7 +114,7 @@
      */
     insert : function (text) {
       const splittedText = this._split();
-      const s = this._element;
+      const s = this._el;
       s.value = splittedText[0] + text + splittedText[1];
       s.selectionStart = (splittedText[0] + text).length;
       s.selectionEnd = s.selectionStart;
@@ -129,7 +129,7 @@
      * Move hinthelper to given character position
      */
     moveto : function (charpos) {
-      const e = this._element;
+      const e = this._el;
       e.selectionStart = charpos;
       e.selectionEnd = charpos;
       e.focus();
@@ -142,8 +142,8 @@
      * below the input box.
      */
     reposition : function () {
-      const inputClientRect = this._element.getBoundingClientRect();
-      const inputStyle = window.getComputedStyle(this._element, null);
+      const inputClientRect = this._el.getBoundingClientRect();
+      const inputStyle = window.getComputedStyle(this._el, null);
 
       const bodyClientRect = 
             document.getElementsByTagName('body')[0].getBoundingClientRect();
@@ -187,7 +187,7 @@
      * or at the current cursor position.
      */
     _split : function (start) {
-      const s = this._element;
+      const s = this._el;
       const value = s.value;
 
       // Get start from cursor position
diff --git a/dev/js/src/hint/item.js b/dev/js/src/hint/item.js
index 2fcecee..5c9a9a7 100644
--- a/dev/js/src/hint/item.js
+++ b/dev/js/src/hint/item.js
@@ -94,8 +94,8 @@
      */
     element : function () {
       // already defined
-      if (this._element !== undefined)
-	      return this._element;
+      if (this._el !== undefined)
+	      return this._el;
 
       // Create list item
       var li = document.createElement("li");
@@ -117,7 +117,7 @@
 	      desc.addT(this._desc);
 	      li.appendChild(desc);
       };
-      return this._element = li;
+      return this._el = li;
     }
   };
 });
diff --git a/dev/js/src/hint/lengthField.js b/dev/js/src/hint/lengthField.js
index 79c7b7d..7cf8c19 100644
--- a/dev/js/src/hint/lengthField.js
+++ b/dev/js/src/hint/lengthField.js
@@ -15,12 +15,12 @@
      * Override the prefix action.
      */
     add : function (param) {
-      this._element.addE('span').addT(param[0] + '--');
+      this._el.addE('span').addT(param[0] + '--');
 
-      var desc = this._element.addE('span');
+      var desc = this._el.addE('span');
       desc.classList.add("desc");
       desc.addT(param[2] + '--');
-      this._element.appendChild(desc);
+      this._el.appendChild(desc);
     }
   };
 });
diff --git a/dev/js/src/hint/menu.js b/dev/js/src/hint/menu.js
index bf1a04b..b7e0d49 100644
--- a/dev/js/src/hint/menu.js
+++ b/dev/js/src/hint/menu.js
@@ -29,7 +29,7 @@
 	          lengthFieldClass : lengthFieldClass
 	        });
       obj._context = context;
-      obj._element.classList.add('hint');
+      obj._el.classList.add('hint');
       obj._hint = hint;
 
       // Make the top item always active
diff --git a/dev/js/src/hint/prefix.js b/dev/js/src/hint/prefix.js
index 197e36e..5a83284 100644
--- a/dev/js/src/hint/prefix.js
+++ b/dev/js/src/hint/prefix.js
@@ -15,9 +15,9 @@
      * Override the prefix action.
      */
     onclick : function () {
-      var m = this.menu();
-      var value = this.value();
-      var h = m.hint();
+      const m = this.menu();
+      const value = this.value();
+      const h = m.hint();
       m.hide();
 
       h.inputField().insert(value);