From 04a469b0a405ad809b0ae603e65b495d3e633478 Mon Sep 17 00:00:00 2001 From: conzty01 Date: Mon, 7 Aug 2017 13:51:19 -0500 Subject: [PATCH 1/2] Removed console cluttering logs --- runestone/showeval/js/showEval.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/runestone/showeval/js/showEval.js b/runestone/showeval/js/showEval.js index d906e4d3f..e513080cb 100644 --- a/runestone/showeval/js/showEval.js +++ b/runestone/showeval/js/showEval.js @@ -64,9 +64,7 @@ var SHOWEVAL = (function () { thisModule.ShowEval.prototype.getWidth = function(text) { // TODO - class style must match or else width will be off. var newElem = $("
").addClass('showEval evalCont').hide().html(text); $('body').append(newElem); - console.log(newElem.width()); var newWidth = newElem.width() + 1; // +1 is a hack - console.log(newWidth); newElem.remove(); return newWidth; @@ -76,6 +74,10 @@ var SHOWEVAL = (function () { this.currentStepDiv.before($('
').addClass('previousStep').html(this.steps[step][0] + this.steps[step][1] + this.steps[step][3])); }; + thisModule.ShowEval.prototype.goBack = function() { + + } + thisModule.ShowEval.prototype.evaluateStep = function(buttonId, step) { $(buttonId).attr("disabled", true); if (step === undefined) { From 958df0d778bb831715c6a2030a21e19a4072fb01 Mon Sep 17 00:00:00 2001 From: conzty01 Date: Mon, 7 Aug 2017 14:06:26 -0500 Subject: [PATCH 2/2] Remove incomplete goBack function --- runestone/showeval/js/showEval.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/runestone/showeval/js/showEval.js b/runestone/showeval/js/showEval.js index e513080cb..ca6922ce4 100644 --- a/runestone/showeval/js/showEval.js +++ b/runestone/showeval/js/showEval.js @@ -74,10 +74,6 @@ var SHOWEVAL = (function () { this.currentStepDiv.before($('
').addClass('previousStep').html(this.steps[step][0] + this.steps[step][1] + this.steps[step][3])); }; - thisModule.ShowEval.prototype.goBack = function() { - - } - thisModule.ShowEval.prototype.evaluateStep = function(buttonId, step) { $(buttonId).attr("disabled", true); if (step === undefined) {