address review comments

This commit is contained in:
nightwing 2015-05-08 14:41:15 +04:00
parent 23096581b2
commit 86c5ce5910

View File

@ -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) {