Skip to content

Commit 8e7bc98

Browse files
committed
first pass of getting typescript compiler to be happy
1 parent 8fd4628 commit 8e7bc98

File tree

6 files changed

+139
-227
lines changed

6 files changed

+139
-227
lines changed

v3/js/pytutor.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,10 +4562,10 @@ function traceQCheckMe(inputId, divId, answer) {
45624562
var ans = $('#'+inputId).val()
45634563
var attrs = answer.split(".")
45644564
var correctAns = curEntry;
4565-
for (j in attrs) {
4565+
for (var j in attrs) {
45664566
correctAns = correctAns[attrs[j]]
45674567
}
4568-
feedbackElement = $("#" + divId + "_feedbacktext")
4568+
var feedbackElement = $("#" + divId + "_feedbacktext")
45694569
if (ans.length > 0 && ans == correctAns) {
45704570
feedbackElement.html('Correct')
45714571
} else {
@@ -4754,7 +4754,7 @@ ExecutionVisualizer.prototype.activateJavaFrontend = function() {
47544754

47554755
// i: actual index in json object; ind: apparent index
47564756
for (var i=1, ind=0; i<obj.length; i++) {
4757-
val = obj[i];
4757+
var val = obj[i];
47584758
var elide = val instanceof Array && val[0] == 'ELIDE';
47594759

47604760
// add a new column and then pass in that newly-added column

0 commit comments

Comments
 (0)