summaryrefslogtreecommitdiff
path: root/js/python.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/python.js')
-rw-r--r--js/python.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/js/python.js b/js/python.js
index 9d051fe..4a2ac92 100644
--- a/js/python.js
+++ b/js/python.js
@@ -6,6 +6,7 @@
// a constant
var firstCharacterPos = {'line': 0, 'ch': 0};
+ //codeq.makePythonTerminalHandler = function (jqConsole, editor, problem_id, activityHandler) {
var makePythonTerminalHandler = function (jqConsole, editor, problem_id, activityHandler) {
var terminal = codeq.makeConsole(jqConsole, {
'greeting': 'CodeQ Python terminal proxy'
@@ -37,7 +38,7 @@
return terminal;
};
- var makeActivityHandler = function (editor, problem_id) {
+ var makeActivityHandler = function (editor, problem_id) {
var lastActivityMillis = Date.now(),
deltaActivityMillis = function deltaActivityMillisFunc () {
var now = Date.now(),
@@ -82,6 +83,8 @@
};
};
+
+
/**
* Creates a new handler for the given Prolog assignment definition.
*
@@ -95,7 +98,7 @@
jqConsole = $('#console'),
jqHints = $('#info'),
editor = CodeMirror(jqEditor[0], { cursorHeight: 0.85, lineNumbers: true, matchBrackets: true, mode: 'python' }),
- activityHandler = makeActivityHandler(editor, problem.id),
+ activityHandler = codeq.makeActivityHandler(editor, problem.id),
terminal = makePythonTerminalHandler(jqConsole, editor, problem.id, activityHandler),
hinter = codeq.makeHinter(jqHints, jqEditor, editor, problem.hint);