kopia lustrzana https://github.com/c9/core
address review comments
rodzic
23096581b2
commit
86c5ce5910
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue