Make hint-helper configurable
Change-Id: I7576557c4d10a007c6fe388159ab6c2c31256dba
diff --git a/dev/js/src/hint.js b/dev/js/src/hint.js
index 238b737..2ebc395 100644
--- a/dev/js/src/hint.js
+++ b/dev/js/src/hint.js
@@ -42,7 +42,7 @@
")?" +
")?" +
")$";
- KorAP.hintArray = KorAP.hintArray || {};
+ KorAP.annotationHelper = KorAP.annotationHelper || { "-" : [] };
/**
* Return keycode based on event
@@ -175,12 +175,12 @@
if (this._menu[action] === undefined) {
// No matching hint menu
- if (KorAP.hintArray[action] === undefined)
+ if (KorAP.annotationHelper[action] === undefined)
return;
// Create matching hint menu
this._menu[action] = menuClass.create(
- this, action, KorAP.hintArray[action]
+ this, action, KorAP.annotationHelper[action]
);
};