OSDN Git Service

Version 0.6.130, fix X.Net & X.Audio.
[pettanr/clientJs.git] / 0.6.x / js / 06_net / 02_XNetJSONP.js
index 0355d58..9e1eac2 100644 (file)
@@ -28,7 +28,7 @@ X.Net.JSONP = {
                        X_NET_JSONPWrapper
                                .asyncDispatch( {
                                        type : jsonString ? X.Event.SUCCESS : X.Event.ERROR,
-                                       data : jsonString //window.JSON ? JSON.parse( jsonString ) : eval( jsonString )
+                                       data : window.JSON ? JSON.parse( jsonString ) : eval( 'var a=' + jsonString + ';a' )
                                } );
                        
                        console.log( 'ms : ' + time + ' speed : ' + ( ( jsonString.length + ( opt_json2FileSize || 0 ) ) / time * 1000 ) + ' バイト/秒.' );