completely reverted to original
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 18 Jul 2005 18:12:14 +0000 (18:12 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Mon, 18 Jul 2005 18:12:14 +0000 (18:12 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@404 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/JSON.js

index 6994cfc..e52a439 100644 (file)
@@ -43,13 +43,7 @@ function object2Array(obj) {
 
 
 function js2JSON(arg) {
-       try { 
-               return _js2JSON(arg);
-       } catch(E) {
-               //alert(E + "EX");
-               if(arg && arg.toString) return arg.toString();
-               return arg;
-       }
+       return _js2JSON(arg);
 }
 
 function _js2JSON(arg) {