Author: doll
Date: Thu Apr 30 18:50:45 2009
New Revision: 770391

URL: http://svn.apache.org/viewvc?rev=770391&view=rev
Log:
Patch from Lev Epshteyn for opensocial templates. 
Fixes bug when fetching data for template rendering. 


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=770391&r1=770390&r2=770391&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
 Thu Apr 30 18:50:45 2009
@@ -182,20 +182,12 @@
   return {
     
     /**
-     * Returns a map of existing data. This is used externally by both the
-     * opensocial-data and opensocial-templates feature, hence is
-     * not hidden, despite not being part of the spec.
+     * Returns a map of existing data.
      * @return {Object} A map of current data sets.
      * TODO: Add to the spec API?
      */
     getData : function() {
-      var data = {};
-      for (var key in dataSets) {
-        if (dataSets.hasOwnProperty(key)) {
-          data[key] = dataSets[key];
-        }
-      }
-      return data;
+      return dataSets;
     },
     
     /**
@@ -263,4 +255,3 @@
 opensocial.data.getDataContext = function() {
   return opensocial.data.DataContext;
 };
-


Reply via email to