logic
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 6 May 2005 01:44:00 +0000 (01:44 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 6 May 2005 01:44:00 +0000 (01:44 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@303 9efc2488-bf62-4759-914b-345cdb29e865

src/javascript/JSON.js

index 77e81b4..7453b4e 100644 (file)
@@ -52,9 +52,9 @@ function js2JSON(arg) {
                                        var arr = new Array();
                                        if( arg.array.constructor != Array ) {
                                                for( var i  = 0; i < arg.array.length; i++ ) {
-                                                       if(arg.array[i]._isfieldmapper) {
+                                                       if( typeof arg.array[i] != 'object' ) { 
                                                                arr[i] = arg.array[i];
-                                                       } else if( typeof arg.array[i] != 'object' ) { 
+                                                       } else if(arg.array[i]._isfieldmapper) {
                                                                arr[i] = arg.array[i];
                                                        } else {
                                                                arr[i] = object2Array(arg.array[i]);