Ok just to make sure this would mean:

Index: io.js
===================================================================
--- io.js       (revision 654521)
+++ io.js       (working copy)
@@ -144,11 +144,9 @@
         if (!data.body) {
           resp.errors.push("failed to parse JSON");
           resp.data = null;
+        } else {
+          resp.data = data.body;
         }
-        else {
- // Straight into the Feed object - override usual resp structure
-          resp = data.body;
-        }
         break;
       case "DOM":
         var dom;

Right?

If you can confirm i'll go ahead and commit it.

        -- Chris

On May 8, 2008, at 3:33 PM, Gary Helmling wrote:

This section will break consistency in the response object returned by
gadgets.io.makeRequest(), and should be replaced with:

} else {
 resp.data = data.body;
}


Reply via email to