From 920f7206992e62b170db71b4c571226b46b3cfd8 Mon Sep 17 00:00:00 2001 From: Christopher Date: Thu, 21 Apr 2016 08:47:07 +0200 Subject: [PATCH] fix indent --- js/translator.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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); } }; })();