summaryrefslogtreecommitdiff
path: root/js/codeq/robot.js
diff options
context:
space:
mode:
authorTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-01 20:44:14 +0100
committerTimotej Lazar <timotej.lazar@fri.uni-lj.si>2016-03-01 20:44:14 +0100
commitbd07f69a238428849de32ec6c1e7492f6c232247 (patch)
tree182b9309f7d4064e3e125749ccc76b1f733db964 /js/codeq/robot.js
parent8add00aa44fa0b4d7e83b3d6074140e87c628479 (diff)
Minor cleanups around the loadProblemData function
Diffstat (limited to 'js/codeq/robot.js')
-rw-r--r--js/codeq/robot.js7
1 files changed, 3 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>. */
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 <http://www.gnu.org/licenses/>. */
'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);