You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shindig.apache.org by do...@apache.org on 2008/07/09 02:54:44 UTC

svn commit: r675071 - in /incubator/shindig/trunk/features/opensocial-current: batchrequest.js jsonactivity.js jsoncontainer.js jsonperson.js restfulcontainer.js

Author: doll
Date: Tue Jul  8 17:54:44 2008
New Revision: 675071

URL: http://svn.apache.org/viewvc?rev=675071&view=rev
Log:
Fixed some minor js style things in the opensocial-current dir. 


Modified:
    incubator/shindig/trunk/features/opensocial-current/batchrequest.js
    incubator/shindig/trunk/features/opensocial-current/jsonactivity.js
    incubator/shindig/trunk/features/opensocial-current/jsoncontainer.js
    incubator/shindig/trunk/features/opensocial-current/jsonperson.js
    incubator/shindig/trunk/features/opensocial-current/restfulcontainer.js

Modified: incubator/shindig/trunk/features/opensocial-current/batchrequest.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/batchrequest.js?rev=675071&r1=675070&r2=675071&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/batchrequest.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/batchrequest.js Tue Jul  8 17:54:44 2008
@@ -26,7 +26,7 @@
  *   Will be called with the JSON data as the only parameter.
  * @constructor
  */
-BatchRequest = function(path, jsonText, opt_callback, opt_params) {
+var BatchRequest = function(path, jsonText, opt_callback, opt_params) {
   this.params_ = opt_params || {};
   this.params_['request'] = jsonText;
 

Modified: incubator/shindig/trunk/features/opensocial-current/jsonactivity.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/jsonactivity.js?rev=675071&r1=675070&r2=675071&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsonactivity.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/jsonactivity.js Tue Jul  8 17:54:44 2008
@@ -23,7 +23,7 @@
  * @private
  * @constructor
  */
-JsonActivity = function(opt_params, opt_skipConversions) {
+var JsonActivity = function(opt_params, opt_skipConversions) {
   opt_params = opt_params || {};
   if (!opt_skipConversions) {
     JsonActivity.constructArrayObject(opt_params, "mediaItems", JsonMediaItem);
@@ -47,7 +47,7 @@
 
 
 // TODO: Split into separate class
-JsonMediaItem = function(opt_params) {
+var JsonMediaItem = function(opt_params) {
   opensocial.MediaItem.call(this, opt_params['mimeType'],
       opt_params['url'], opt_params);
 }

Modified: incubator/shindig/trunk/features/opensocial-current/jsoncontainer.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/jsoncontainer.js?rev=675071&r1=675070&r2=675071&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsoncontainer.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/jsoncontainer.js Tue Jul  8 17:54:44 2008
@@ -21,7 +21,7 @@
  */
 
 
-JsonContainer = function(baseUrl, domain, supportedFieldsArray) {
+var JsonContainer = function(baseUrl, domain, supportedFieldsArray) {
   opensocial.Container.call(this);
 
   var supportedFieldsMap = {};
@@ -259,7 +259,7 @@
   return oldIdSpec;
 };
 
-RequestItem = function(jsonParams, processData) {
+var RequestItem = function(jsonParams, processData) {
   this.jsonParams = jsonParams;
   this.processData = processData ||
     function (rawJson) {

Modified: incubator/shindig/trunk/features/opensocial-current/jsonperson.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/jsonperson.js?rev=675071&r1=675070&r2=675071&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsonperson.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/jsonperson.js Tue Jul  8 17:54:44 2008
@@ -23,7 +23,7 @@
  * @private
  * @constructor
  */
-JsonPerson = function(opt_params) {
+var JsonPerson = function(opt_params) {
   opt_params = opt_params || {};
 
   // TODO: doesn't handle drinker, smoker, or gender yet

Modified: incubator/shindig/trunk/features/opensocial-current/restfulcontainer.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/restfulcontainer.js?rev=675071&r1=675070&r2=675071&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/restfulcontainer.js (original)
+++ incubator/shindig/trunk/features/opensocial-current/restfulcontainer.js Tue Jul  8 17:54:44 2008
@@ -20,7 +20,7 @@
  * @fileoverview RESTful based opensocial container.
  */
 
-RestfulContainer = function(baseUrl, domain, supportedFieldsArray) {
+var RestfulContainer = function(baseUrl, domain, supportedFieldsArray) {
   opensocial.Container.call(this);
 
   var supportedFieldsMap = {};
@@ -324,11 +324,11 @@
   return new RestfulRequestItem(url, "POST", activity.toJsonObject());
 };
 
-RestfulRequestItem = function(url, method, postData, processData) {
+var RestfulRequestItem = function(url, method, opt_postData, opt_processData) {
   this.url = url;
   this.method = method;
-  this.postData = postData;
-  this.processData = processData ||
+  this.postData = opt_postData;
+  this.processData = opt_processData ||
     function (rawJson) {
       return rawJson;
     };