fix indent

This commit is contained in:
Christopher 2016-04-21 08:47:07 +02:00
parent a7c394de6c
commit 920f720699

View File

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