diff options
Diffstat (limited to 'js/codeq/hint.js')
-rw-r--r-- | js/codeq/hint.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/codeq/hint.js b/js/codeq/hint.js index 0550a41..641c710 100644 --- a/js/codeq/hint.js +++ b/js/codeq/hint.js @@ -386,7 +386,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ if (planIdx < planDef.length) { var jqHintBox = $('<div class="feedback"></div>'); activityHandler.queueTrace({'typ': 'plan', 'index': planIdx}); - clearHints(); typeHandlers['static'](planDef[planIdx], {'id': 'plan'}, jqHintBox); jqHints.prepend(jqHintBox); jqHintsContainer.scrollTop(0); @@ -411,9 +410,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ jqHintBox = $('<div class="feedback"></div>'), jqHintBtn; - // clear any existing hints - clearHints(); - // display the test_results hint first if found for (i = 0; i < hints.length; i++) { hint = hints[i]; @@ -450,6 +446,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ jqHintsContainer.scrollTop(0); }, + 'clear': clearHints, + 'destroy': function () { editor.off('update', onEditorUpdate); clearHints(); |