From 9dcfef6f3de45712c72f6d4c171f8bf20c5ac764 Mon Sep 17 00:00:00 2001 From: Matt Basta Date: Sat, 7 Dec 2013 11:10:23 -0800 Subject: [PATCH] Fix for test runner --- src/media/js/views/tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/media/js/views/tests.js b/src/media/js/views/tests.js index c88e6bb..4ce95c4 100644 --- a/src/media/js/views/tests.js +++ b/src/media/js/views/tests.js @@ -48,7 +48,7 @@ define('views/tests', ['assert', 'requests'], function(assert, requests) { var scripts = document.querySelectorAll('#page script'); for (var i = 0; i < scripts.length; i++) { var script = scripts[i]; - requests.get(script.getAttribute('src'), true).done(eval); + requests.get(script.getAttribute('src'), true).done(eval.bind(window)); } builder.z('type', 'debug');