address review comments

pull/85/head^2
nightwing 2015-05-08 14:41:15 +04:00
rodzic 23096581b2
commit 86c5ce5910
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -427,14 +427,14 @@ define(function(require, exports, module) {
if (typeof json == "object")
return JSON.parse(JSON.stringify(json));
if (typeof json == "string")
return json;
try {
var obj = json && JSON.parse(json);
return obj;
}
catch (e) {
return false;
return JSON.parse(json);
}
catch (e) {}
}
function getBool(query) {