From 00faee3432b8c78ce0f4c528e602f550663390e9 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sun, 5 Jan 2014 19:40:25 -0500 Subject: Actually fix ReferenceError on startup. --- www/js/html5ks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/html5ks.js b/www/js/html5ks.js index d6c227b..f6f226a 100644 --- a/www/js/html5ks.js +++ b/www/js/html5ks.js @@ -193,7 +193,7 @@ window.html5ks = { } else { xhr.open("GET", "json/" + name + ".json"); xhr.onload = function () { - d = JSON.parse(xhr.responseText); + var d = JSON.parse(xhr.responseText); html5ks.data[name] = d; deferred.resolve(d); }; -- cgit v1.2.3-70-g09d2