You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by et...@apache.org on 2008/02/29 05:47:15 UTC
svn commit: r632222 - /incubator/shindig/trunk/features/core/json.js
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,