Skip to content

Commit 3b4a689

Browse files
committed
ahhhhh
1 parent f95184a commit 3b4a689

4 files changed

Lines changed: 16 additions & 16 deletions

File tree

‎v3/js/composingprograms.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
8383
backend_script, backendOptionsObj,
8484
frontendOptionsObj,
8585
'pyOutputPane',
86-
enterDisplayMode, handleUncaughtExceptionFunc);
86+
optFinishSuccessfulExecution, handleUncaughtExceptionFunc);
8787
}
8888

8989
$(document).ready(function() {

‎v3/js/csc108h.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
8383
backend_script, backendOptionsObj,
8484
frontendOptionsObj,
8585
'pyOutputPane',
86-
enterDisplayMode, handleUncaughtExceptionFunc);
86+
optFinishSuccessfulExecution, handleUncaughtExceptionFunc);
8787
}
8888

8989
$(document).ready(function() {

‎v3/js/opt-frontend-common.js‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,20 @@ function enterEditMode() {
10011001
}
10021002

10031003

1004+
function optFinishSuccessfulExecution() {
1005+
enterDisplayMode(); // do this first!
1006+
1007+
// 2014-05-25: implemented more detailed tracing for surveys
1008+
myVisualizer.creationTime = new Date();
1009+
// each element will be a two-element list consisting of:
1010+
// [step number, milliseconds elapsed since creationTime]
1011+
// ("debounce" entries that are less than 1 second apart to
1012+
// compress the logs a bit when there's rapid scrubbing or scrolling)
1013+
myVisualizer.updateHistory = [];
1014+
myVisualizer.updateHistory.push([myVisualizer.curInstr, 0]); // seed it!
1015+
}
1016+
1017+
10041018
// TODO: cut reliance on the nasty rawInputLst global
10051019
function executePythonCode(pythonSourceCode,
10061020
backendScript, backendOptionsObj,

‎v3/js/opt-frontend.js‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -162,20 +162,6 @@ function executeCode(forceStartingInstr, forceRawInputLst) {
162162
}
163163

164164

165-
function optFinishSuccessfulExecution() {
166-
enterDisplayMode(); // do this first!
167-
168-
// 2014-05-25: implemented more detailed tracing for surveys
169-
myVisualizer.creationTime = new Date();
170-
// each element will be a two-element list consisting of:
171-
// [step number, milliseconds elapsed since creationTime]
172-
// ("debounce" entries that are less than 1 second apart to
173-
// compress the logs a bit when there's rapid scrubbing or scrolling)
174-
myVisualizer.updateHistory = [];
175-
myVisualizer.updateHistory.push([myVisualizer.curInstr, 0]); // seed it!
176-
}
177-
178-
179165
$(document).ready(function() {
180166
setSurveyHTML();
181167

0 commit comments

Comments
 (0)