You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by ch...@apache.org on 2008/05/08 15:50:36 UTC

svn commit: r654525 - /incubator/shindig/trunk/features/core.io/io.js

Author: chabotc
Date: Thu May  8 06:50:36 2008
New Revision: 654525

URL: http://svn.apache.org/viewvc?rev=654525&view=rev
Log:
Previous patch broke consistency in the response object returned bygadgets.io.makeRequest

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

Modified: incubator/shindig/trunk/features/core.io/io.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/core.io/io.js?rev=654525&r1=654524&r2=654525&view=diff
==============================================================================
--- incubator/shindig/trunk/features/core.io/io.js (original)
+++ incubator/shindig/trunk/features/core.io/io.js Thu May  8 06:50:36 2008
@@ -144,10 +144,8 @@
         if (!data.body) {
           resp.errors.push("failed to parse JSON");
           resp.data = null;
-        }
-        else {
-          // Straight into the Feed object - override usual resp structure
-          resp = data.body;
+        } else {
+          resp.data = data.body;
         }
         break;
       case "DOM":