From bd07f69a238428849de32ec6c1e7492f6c232247 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Tue, 1 Mar 2016 20:44:14 +0100 Subject: Minor cleanups around the loadProblemData function --- js/codeq/robot.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'js/codeq/robot.js') diff --git a/js/codeq/robot.js b/js/codeq/robot.js index 70f7c5d..4222d0b 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -31,7 +31,7 @@ along with this program. If not, see . */ navigationRobot.addClass("active"); navigationRobot.css('display', ''); - jqScreen.css('display', '');//we have to show the screen now so the code editor shows its initial values correctly + jqScreen.css('display', ''); // we have to show the screen now so the code editor shows its initial values correctly robotHandler = createRobotHandler(problemDef, commonDef, currentSolution); }; @@ -39,9 +39,8 @@ along with this program. If not, see . */ 'jqScreen': jqScreen, 'enter': function (ref, data) { - codeq.loadProblemData(ref,data).then(function(problem){ - //codeq.log.debug("then:"+JSON.stringify(problem)); - enterFun(problem.generalProblemData,data.commonDef,problem.solution); + codeq.loadProblemData(ref, data).then(function (problem) { + enterFun(problem.generalProblemData, data.commonDef, problem.solution); }) .fail(function (reason) { codeq.log.error('Failed to obtain the problem definition: ' + reason, reason); -- cgit v1.2.1