From 8f35e1e3c2ffc08b17cf76f8cf1d4944c20af440 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Mon, 5 Oct 2015 19:21:05 +0200 Subject: Save current program in trace with each 'open' action So we can resynchronize if something goes wrong. --- js/codeq/robot.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'js/codeq/robot.js') diff --git a/js/codeq/robot.js b/js/codeq/robot.js index c716be8..5d86559 100644 --- a/js/codeq/robot.js +++ b/js/codeq/robot.js @@ -231,7 +231,11 @@ }); codeq.comms.loadProblem(problemDef.id).done(); - activityHandler.queueTrace({'typ': 'open', 'time': Date.now()}); + activityHandler.queueTrace({ + 'typ': 'open', + 'time': Date.now(), + 'content': editor.getDoc().getValue() + }); return { destroy: function () { -- cgit v1.2.1