JSCS Says Goodbye

This commit is contained in:
Nicholas Hubbard
2016-05-03 19:09:38 -04:00
parent 0252495eca
commit 15887994fe
10 changed files with 83 additions and 60 deletions

View File

@@ -47,7 +47,7 @@ var Translator = (function() {
_loadJSON: function(file, callback) {
var xhr = new XMLHttpRequest();
xhr.overrideMimeType("application/json");
xhr.open('GET', file, true);
xhr.open("GET", file, true);
xhr.onreadystatechange = function () {
if (xhr.readyState == 4 && xhr.status == "200") {
callback(JSON.parse(xhr.responseText));