can3p (can3p) wrote in changelog,
can3p
can3p
changelog

[livejournal] r20449: OPSC-397: Implement LJ JS API osapi.peop...

Committer: dpetrov
OPSC-397: Implement LJ JS API osapi.people service functions
U   trunk/htdocs/js/apps/shindig/shindig.container/osapi.js
Modified: trunk/htdocs/js/apps/shindig/shindig.container/osapi.js
===================================================================
--- trunk/htdocs/js/apps/shindig/shindig.container/osapi.js	2011-10-31 07:19:19 UTC (rev 20448)
+++ trunk/htdocs/js/apps/shindig/shindig.container/osapi.js	2011-10-31 07:24:46 UTC (rev 20449)
@@ -28,10 +28,11 @@
 if (gadgets && gadgets.rpc) { //Only define if gadgets rpc exists
 
   /**
-   * Dispatch a JSON-RPC batch request to services defined in the osapi namespace
+   * Dispatch a JSON-RPC batch request to services defined in the osapi namespace.
+   * Note: method was modified to pass security token to the container explicitly
    * @param {Array} requests
    */
-  osapi._handleGadgetRpcMethod = function(requests) {
+  osapi._handleGadgetRpcMethod = function(requests, st) {
     var responses = new Array(requests.length);
     var callCount = 0;
     var callback = this.callback;
@@ -68,7 +69,7 @@
             callback(responses);
           }
         };
-      }(i));
+      }(i), st);
     }
   };
 

Tags: can3p, dpetrov, js, livejournal
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments