Introduced alert information to hint helper
diff --git a/dev/demo/hintdemo.js b/dev/demo/hintdemo.js
index fabf0c2..fd80b43 100644
--- a/dev/demo/hintdemo.js
+++ b/dev/demo/hintdemo.js
@@ -5,9 +5,16 @@
}
});
+var hint = undefined;
+
require(['hint','hint/array','lib/domReady'], function (hintClass, hintArray, domReady) {
KorAP.hintArray = hintArray;
domReady(function() {
- hintClass.create();
+ hint = hintClass.create();
});
});
+
+function demoAlert (pos, msg) {
+ if (hint !== undefined)
+ hint.charAlert(pos, msg);
+}