| * Create new hint helper menu. |
| create : function (hint, context, params) { |
| var obj = Object.create(menuClass) |
| prefixClass : prefixClass, |
| lengthFieldClass : lengthFieldClass |
| obj._element.classList.add('hint'); |
| // Make the top item always active |
| obj.element().addEventListener('blur', function (e) { |
| this.menu.hide(); // WithoutDestruction(); |
| // Focus on input field on hide |
| obj.onHide = function () { |
| h._inputField.element().focus(); |
| if (h.active() !== null) { |
| * The hint helper object, |
| * the menu is attached to. |