Author: etnu
Date: Thu Feb 28 20:47:15 2008
New Revision: 632222

URL: http://svn.apache.org/viewvc?rev=632222&view=rev
Log:
Updated json.stringify to correctly deal with undefined values. When input is 
undefined, the return value will be undefined.


Modified:
    incubator/shindig/trunk/features/core/json.js

Modified: incubator/shindig/trunk/features/core/json.js
URL: 
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core/json.js?rev=632222&r1=632221&r2=632222&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core/json.js (original)
+++ incubator/shindig/trunk/features/core/json.js Thu Feb 28 20:47:15 2008
@@ -136,11 +136,10 @@
           }
         }
       }
+      // Join all of the member texts together and wrap them in braces.
+      return '{' + a.join(',') + '}';
     }
-    // Join all of the member texts together and wrap them in braces.
-    return '{' + a.join(',') + '}';
   }
-
 
   return {
     stringify: stringify,


Reply via email to