From 33da54afb2f8d5d0d42f188d6d0bb03e6eac3423 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 17 Feb 2016 16:32:41 +0100 Subject: Remove old comments --- js/codeq/robot.js | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'js/codeq/robot.js') diff --git a/js/codeq/robot.js b/js/codeq/robot.js index 7f67025..8b23e44 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -111,9 +111,7 @@ along with this program. If not, see . */ codeq.globalStateMachine.register('robot', { 'jqScreen': jqScreen, - //'enter': function (problemDef, commonDef, currentSolution) { - 'enter': function (ref, data) {//function (problemDef, commonDef, currentSolution) {// - + '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); @@ -125,35 +123,11 @@ along with this program. If not, see . */ history.back();//TODO test }) .done(); - - - /*$('#navigation-problem_list').css('display', ''); - $("#navigation-robot").addClass("active"); - $('#navigation-robot').css('display', ''); - - jqScreen.css('display', '');//we have to show the screen now so the code editor shows its initial values correctly - robotHandler = createRobotHandler(problemDef, commonDef, currentSolution); - subScreens = codeq.makeStateMachine(substates); - subScreens.transition(jqDescription.data(stateNameTag)); - - jqInfoButtons.on(transitionEventName, function (event) { - subScreens.transition('info'); // set focus on the hints quadrant - event.stopPropagation(); // don't allow the event to go on and trigger further transition - }); - jqBtnRun.on(transitionEventName, function (event) { - subScreens.transition('console'); // set focus on the hints quadrant - event.stopPropagation(); // don't allow the event to go on and trigger further transition - }); - - jqAllQuadrants.on(transitionEventName, function () { - subScreens.transition($(this).data(stateNameTag)); - });*/ }, 'exit': function () { jqAllButtons.off(); // unregister all event handlers jqAllQuadrants.off(); jqScreen.css('display', 'none'); -// jqAllQuadrants.removeClass('transition'); robotHandler.destroy(); robotHandler = null; subScreens.destroy(); -- cgit v1.2.1