From f6aaca2268b21331a015f871bd458e2d8c7e37df Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 21 Mar 2005 14:53:06 +0000 Subject: [PATCH] We had casting removed for the cat demo. We need to revisit this. git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@248 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/JSON.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/javascript/JSON.js b/src/javascript/JSON.js index 9145267..72f457e 100644 --- a/src/javascript/JSON.js +++ b/src/javascript/JSON.js @@ -22,8 +22,8 @@ function Cast (obj, class_constructor) { } function JSON2js (json) { - json = String(json).replace( /\/\*--\s*S\w*?\s*?\s+\w+\s*--\*\//g, 'Cast('); - json = String(json).replace( /\/\*--\s*E\w*?\s*?\s+(\w+)\s*--\*\//g, ', "$1")'); + //json = String(json).replace( /\/\*--\s*S\w*?\s*?\s+\w+\s*--\*\//g, 'Cast('); + //json = String(json).replace( /\/\*--\s*E\w*?\s*?\s+(\w+)\s*--\*\//g, ', "$1")'); var obj; if (json != '') { eval( 'obj = ' + json ); -- 2.43.2