From d68d7c3c9d85e164ade68c1627e363f590dcc716 Mon Sep 17 00:00:00 2001 From: erickson Date: Fri, 1 Apr 2005 14:21:40 +0000 Subject: [PATCH] removed some unused lines git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@264 9efc2488-bf62-4759-914b-345cdb29e865 --- src/javascript/JSON.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/javascript/JSON.js b/src/javascript/JSON.js index 8a6a92c..731ea9e 100644 --- a/src/javascript/JSON.js +++ b/src/javascript/JSON.js @@ -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; } -- 2.11.0