diff --git a/js/translator.js b/js/translator.js index 3a08dcf3..3ef18ed9 100644 --- a/js/translator.js +++ b/js/translator.js @@ -43,15 +43,15 @@ var Translator = (function() { * argument callback function - Function called when done. */ _loadJSON: function(file, callback) { - var xhr = new XMLHttpRequest(); - xhr.overrideMimeType("application/json"); - xhr.open('GET', file, true); - xhr.onreadystatechange = function () { - if (xhr.readyState == 4 && xhr.status == "200") { - callback(JSON.parse(xhr.responseText)); - } - }; - xhr.send(null); + var xhr = new XMLHttpRequest(); + xhr.overrideMimeType("application/json"); + xhr.open('GET', file, true); + xhr.onreadystatechange = function () { + if (xhr.readyState == 4 && xhr.status == "200") { + callback(JSON.parse(xhr.responseText)); + } + }; + xhr.send(null); } }; })();