You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by be...@apache.org on 2009/05/06 00:05:00 UTC
svn commit: r771988 -
/incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js
Author: beaton
Date: Tue May 5 22:04:59 2009
New Revision: 771988
URL: http://svn.apache.org/viewvc?rev=771988&view=rev
Log:
Return a shallow copy to avoid breaking unit tests. See note from Lev
on shindig-dev about long term goals.
Modified:
incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js
Modified: incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js?rev=771988&r1=771987&r2=771988&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/datacontext.js Tue May 5 22:04:59 2009
@@ -163,7 +163,13 @@
* TODO: Add to the spec API?
*/
getData : function() {
- return dataSets;
+ var data = {};
+ for (var key in dataSets) {
+ if (dataSets.hasOwnProperty(key)) {
+ data[key] = dataSets[key];
+ }
+ }
+ return data;
},
/**