You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by mh...@apache.org on 2011/03/04 03:45:35 UTC

svn commit: r1076922 - /shindig/trunk/features/src/main/javascript/features/osapi/batch.js

Author: mhermanto
Date: Fri Mar  4 02:45:35 2011
New Revision: 1076922

URL: http://svn.apache.org/viewvc?rev=1076922&view=rev
Log:
Avoid prop obfuscation on more variables.
http://codereview.appspot.com/4264042/

Modified:
    shindig/trunk/features/src/main/javascript/features/osapi/batch.js

Modified: shindig/trunk/features/src/main/javascript/features/osapi/batch.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/osapi/batch.js?rev=1076922&r1=1076921&r2=1076922&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/osapi/batch.js (original)
+++ shindig/trunk/features/src/main/javascript/features/osapi/batch.js Fri Mar  4 02:45:35 2011
@@ -61,9 +61,9 @@
      * @param {Object} request
      */
     var toJsonRpc = function(request) {
-      var jsonRpc = { 'method': request.request.method, 'id': request.key};
-      if (request.request.rpc) {
-        jsonRpc.params = request.request.rpc;
+      var jsonRpc = { 'method': request['request']['method'], 'id': request['key'] };
+      if (request['request']['rpc']) {
+        jsonRpc['params'] = request['request']['rpc'];
       }
       return jsonRpc;
     };