Attempt to fix no hint with unkown contexts
diff --git a/dev/js/src/hint.js b/dev/js/src/hint.js
index 455312d..89003ee 100644
--- a/dev/js/src/hint.js
+++ b/dev/js/src/hint.js
@@ -87,7 +87,6 @@
// create alert
c.appendChild(this._alert.element());
-
var that = this;
this._inputField.container().addEventListener('click', function (e) {
@@ -167,7 +166,6 @@
* Return hint menu and probably init based on an action
*/
menu : function (action) {
-
if (this._menu[action] === undefined) {
// No matching hint menu
@@ -189,10 +187,12 @@
*/
contextMenu : function (ifContext) {
var context = this._inputField.context();
+
if (context === undefined || context.length == 0)
return ifContext ? undefined : this.menu("-");
context = this._analyzer.test(context);
+
if (context === undefined || context.length == 0)
return ifContext ? undefined : this.menu("-");