summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/codeq/hint.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js
index 55acac9..e1c7a6b 100644
--- a/js/codeq/hint.js
+++ b/js/codeq/hint.js
@@ -45,7 +45,7 @@
typeHandlers = {
'static': function (type, template, serverHint) {
- var args = serverHint.args,
+ var args = serverHint ? serverHint.args : null,
jqContainer, jqButton, i, N, tmpl, tmplIsObject;
if (template instanceof Array) { // unwrap the template if there's only one
if (template.length == 0) template = '';
@@ -136,7 +136,8 @@
*/
'planNext': function () {
if (planIdx < planDef.length) {
- jqHints.append('<div class="plan">' + planDef[planIdx++] + '</div>');
+ typeHandlers['static']('static', planDef[planIdx], null);
+ planIdx++;
}
return planIdx < planDef.length;
},