From 0d4e59c4e8a9c153ac0b6ac39e22f5dfd8b47980 Mon Sep 17 00:00:00 2001 From: Prabhav Chawla Date: Thu, 9 Feb 2017 16:48:59 -0500 Subject: [PATCH] Bug fix: Audio Tour --- runestone/activecode/js/activecode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runestone/activecode/js/activecode.js b/runestone/activecode/js/activecode.js index f27fc859a..1dda530e7 100755 --- a/runestone/activecode/js/activecode.js +++ b/runestone/activecode/js/activecode.js @@ -216,7 +216,7 @@ ActiveCode.prototype.createControls = function () { $(butt).css("margin-left", "10px"); this.atButton = butt; ctrlDiv.appendChild(butt); - $(butt).click((function() {new AudioTour(this.divid, this.editor.getValue(), 1, $(this.origElem).data("audio"))}).bind(this)); + $(butt).click((function() {new AudioTour(this.divid, this.code, 1, $(this.origElem).data("audio"))}).bind(this)); }