diff options
author | Aleš Smodiš <aless@guru.si> | 2015-09-29 16:45:21 +0200 |
---|---|---|
committer | Aleš Smodiš <aless@guru.si> | 2015-09-29 16:45:21 +0200 |
commit | d657145124a601a9375b04a488ff2950f645f26d (patch) | |
tree | 16cbfa6119f53e37471c05236d3cdba179128978 /js/codeq/hint.js | |
parent | 163dd5a445910ac7ba19e0e291d1f04c20d9861d (diff) |
Correctly process hint_type and hint.
Diffstat (limited to 'js/codeq/hint.js')
-rw-r--r-- | js/codeq/hint.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 1b97afc..0cb047a 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -7,7 +7,7 @@ var firstCharacterPos = {'line': 0, 'ch': 0}, sel_no_scroll = {'scroll': false}; - codeq.makeHinter = function (jqHints, jqEditor, editor, trNamespace, hintDefsA, commonHintDefsA, planDef) { + codeq.makeHinter = function (jqHints, jqEditor, editor, trNamespace, problemDef, commonDef) { var hintCounter = 0, // for generating unique class-names hintCleaners = [], planIdx = 0, @@ -134,6 +134,9 @@ codeq.tr.registerDictionary(trNamespace, dictionary); // TODO: below is a temporary code to bridge the old implementation with the new data format + var hintDefsA = problemDef.hint, + commonHintDefsA = commonDef.hint, + planDef = problemDef.plan; if (planDef.sl) planDef = planDef.sl; else planDef = planDef.en || []; var hintDefs = {}, t1, t2, k; |