Committer: dpetrov
OPSC-397: Implement LJ JS API osapi.people service functionsU 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); } };