X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=0.6.x%2Fjs%2F05_util%2F02_XJSON.js;h=5f86da6c529a325b714a669c421c84238ebe187c;hb=527f50d3e1930a335a6525b5c973ab27fe385868;hp=a99aa0ec4d0d45d11c94b3de431a81f320c9043f;hpb=34431df46635079c1ce6626c9caf1456f88e91bd;p=pettanr%2FclientJs.git diff --git a/0.6.x/js/05_util/02_XJSON.js b/0.6.x/js/05_util/02_XJSON.js index a99aa0e..5f86da6 100644 --- a/0.6.x/js/05_util/02_XJSON.js +++ b/0.6.x/js/05_util/02_XJSON.js @@ -50,6 +50,7 @@ function X_JSON_stringify( obj ){ * @alias X.JSON.parse */ function X_JSON_parseTrustableString( jsonString ){ + if( !jsonString ) return jsonString; // '' の場合エラ-になる return window.JSON ? JSON.parse( jsonString ) : eval( '(' + jsonString + ')' ); };