removed some unused lines
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 1 Apr 2005 14:21:40 +0000 (14:21 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 1 Apr 2005 14:21:40 +0000 (14:21 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@264 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/JSON.js

index 8a6a92c..731ea9e 100644 (file)
@@ -39,7 +39,7 @@ function js2JSON(arg) {
 
                        if(arg) {
 
-                               if (arg._isfieldmapper) {
+                               if (arg._isfieldmapper) { /* magi-c-ast for fieldmapper objects */
                                        return "/*--S acp*/" + js2JSON(arg.array) + "/*--E acp*/";
 
                                } else {
@@ -69,16 +69,10 @@ function js2JSON(arg) {
                                                                o += js2JSON(i) + ':' + v;
                                                        }
                                                }
-                                               var obj_start = '{';
-                                               var obj_end = '}';
-                                               try {
-                                                       if ( arg.class_name() ) {
-                                                               obj_start = '/*--S ' + arg.class_name() + '--*/{';
-                                                               obj_end   = '}/*--E ' + arg.class_name() + '--*/';
-                                                       }
-                                               } catch( E ) {}
-                                               o = obj_start + o + obj_end;
+
+                                               o = '{' + o + '}';
                                                return o;
+
                                        } else {
                                                return;
                                        }