You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2010/10/27 19:16:03 UTC

svn commit: r1028043 - in /shindig/trunk/features/src/main/javascript/features: container/ dynamic-height/ opensocial-base/ opensocial-data/ opensocial-jsonrpc/ opensocial-reference/ opensocial-templates/ rpc/

Author: lindner
Date: Wed Oct 27 17:16:02 2010
New Revision: 1028043

URL: http://svn.apache.org/viewvc?rev=1028043&view=rev
Log:
fixjsstyle fixes

Modified:
    shindig/trunk/features/src/main/javascript/features/container/container.js
    shindig/trunk/features/src/main/javascript/features/container/gadget_site.js
    shindig/trunk/features/src/main/javascript/features/container/init.js
    shindig/trunk/features/src/main/javascript/features/container/util.js
    shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js
    shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonalbum.js
    shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonmediaitem.js
    shindig/trunk/features/src/main/javascript/features/opensocial-data/data.js
    shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js
    shindig/trunk/features/src/main/javascript/features/opensocial-reference/album.js
    shindig/trunk/features/src/main/javascript/features/opensocial-reference/container.js
    shindig/trunk/features/src/main/javascript/features/opensocial-reference/datarequest.js
    shindig/trunk/features/src/main/javascript/features/opensocial-reference/mediaitem.js
    shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js
    shindig/trunk/features/src/main/javascript/features/rpc/nix.transport.js

Modified: shindig/trunk/features/src/main/javascript/features/container/container.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container/container.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container/container.js (original)
+++ shindig/trunk/features/src/main/javascript/features/container/container.js Wed Oct 27 17:16:02 2010
@@ -177,8 +177,8 @@ shindig.container.Container.prototype.na
     // TODO: Should display error without doing a standard navigate.
     // TODO: Bad if the error gadget fails to load.
     if (gadgetInfo.error) {
-      throw [ 'Failed to possibly schedule token refresh for gadget ',
-          holder.getUrl(), '.' ].join('');
+      throw ['Failed to possibly schedule token refresh for gadget ',
+          holder.getUrl(), '.'].join('');
     }
     if (gadgetInfo[shindig.container.MetadataResponse.NEEDS_TOKEN_REFRESH]) {
       self.scheduleRefreshTokens_();
@@ -221,7 +221,7 @@ shindig.container.Container.prototype.pr
   this.service_.getGadgetMetadata(request, function(response) {
     for (var id in response) {
       if (response[id].error) {
-        throw [ 'Failed to preload gadget ', id, '.' ].join('');
+        throw ['Failed to preload gadget ', id, '.'].join('');
       }
       self.addPreloadedGadgetUrl_(id);
       if (response[id][shindig.container.MetadatResponse.NEEDS_TOKEN_REFRESH]) {
@@ -256,7 +256,7 @@ shindig.container.Container.prototype.rp
   gadgets.rpc.register(service, function() {
     // this['f'] is set by calling iframe via gadgets.rpc.
     this[shindig.container.GadgetSite.RPC_ARG_KEY] = self.getGadgetSite(this['f']);
-    var argsCopy = [ this ];
+    var argsCopy = [this];
     for (var i = 0; i < arguments.length; ++i) {
       argsCopy.push(arguments[i]);
     }
@@ -492,7 +492,7 @@ shindig.container.Container.prototype.re
       if (gadgetInfo[shindig.container.MetadataResponse.NEEDS_TOKEN_REFRESH]) {
         var tokenInfo = response[holder.getUrl()];
         if (tokenInfo.error) {
-          throw [ 'Failed to get token for gadget ', holder.getUrl(), '.' ].join('');
+          throw ['Failed to get token for gadget ', holder.getUrl(), '.'].join('');
         }
         gadgets.rpc.call(holder.getIframeId(), 'update_security_token', null,
             tokenInfo[shindig.container.TokenResponse.TOKEN]);

Modified: shindig/trunk/features/src/main/javascript/features/container/gadget_site.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container/gadget_site.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container/gadget_site.js (original)
+++ shindig/trunk/features/src/main/javascript/features/container/gadget_site.js Wed Oct 27 17:16:02 2010
@@ -207,7 +207,7 @@ shindig.container.GadgetSite.prototype.n
   this.service_.getGadgetMetadata(request, function(response) {
     var gadgetInfo = response[gadgetUrl];
     if (gadgetInfo.error) {
-      var message = [ 'Failed to navigate for gadget ', gadgetUrl, '.' ].join(''); 
+      var message = ['Failed to navigate for gadget ', gadgetUrl, '.'].join('');
       shindig.container.util.warn(message);
     } else {
       self.render(gadgetInfo, viewParams, renderParams);
@@ -248,7 +248,7 @@ shindig.container.GadgetSite.prototype.r
     viewInfo = gadgetInfo[shindig.container.MetadataResponse.VIEWS][view];
   }
   if (!viewInfo) {
-    throw [ 'Unsupported view ', view, ' for gadget ', gadgetInfo_['url'], '.' ].join('');
+    throw ['Unsupported view ', view, ' for gadget ', gadgetInfo_['url'], '.'].join('');
   }
 
   var localRenderParams = {};

Modified: shindig/trunk/features/src/main/javascript/features/container/init.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container/init.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container/init.js (original)
+++ shindig/trunk/features/src/main/javascript/features/container/init.js Wed Oct 27 17:16:02 2010
@@ -49,7 +49,7 @@
       // In case script URI is relative, resolve (make absolute) with container.
       window.__API_URI.resolve(window.__CONTAINER_URI);
     }
-    
+
     window.__CONTAINER = window.__API_URI
         ? window.__API_URI.getQP('container')
         : 'default';

Modified: shindig/trunk/features/src/main/javascript/features/container/util.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/container/util.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/container/util.js (original)
+++ shindig/trunk/features/src/main/javascript/features/container/util.js Wed Oct 27 17:16:02 2010
@@ -91,7 +91,7 @@ shindig.container.util.newTokenRequest =
   return {
       'container': window.__CONTAINER,
       'ids': gadgetUrls,
-      'fields': [ 'token' ]
+      'fields': ['token']
   };
 };
 
@@ -131,4 +131,4 @@ shindig.container.util.warn = function(m
   if (console && console.warn) {
     console.warn(message);
   }
-}
+};

Modified: shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js (original)
+++ shindig/trunk/features/src/main/javascript/features/dynamic-height/dynamic-height.js Wed Oct 27 17:16:02 2010
@@ -103,7 +103,7 @@ gadgets.window = gadgets.window || {};
       for (var i = 0; i < children.length; i++) {
         var child = children[i];
         if (typeof child.offsetTop !== 'undefined' &&
-            typeof child.offsetHeight  !== 'undefined') {
+            typeof child.offsetHeight !== 'undefined') {
           // offsetHeight already accounts for border-bottom, padding-bottom.
           var bottom = child.offsetTop + child.offsetHeight +
               parseIntFromElemPxAttribute(child, 'margin-bottom');

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonalbum.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonalbum.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonalbum.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonalbum.js Wed Oct 27 17:16:02 2010
@@ -20,7 +20,7 @@
 var JsonAlbum = function(opt_params) {
   opt_params = opt_params || {};
 
-  JsonAlbum.constructObject(opt_params, "location", opensocial.Address);
+  JsonAlbum.constructObject(opt_params, 'location', opensocial.Address);
 
   opensocial.Album.call(this, opt_params);
 };

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonmediaitem.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonmediaitem.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonmediaitem.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-base/jsonmediaitem.js Wed Oct 27 17:16:02 2010
@@ -20,7 +20,7 @@
 var JsonMediaItem = function(opt_params) {
   opt_params = opt_params || {};
 
-  opensocial.MediaItem.call(this, opt_params["mimeType"], opt_params["url"], opt_params);
+  opensocial.MediaItem.call(this, opt_params['mimeType'], opt_params['url'], opt_params);
 };
 
 JsonMediaItem.inherits(opensocial.MediaItem);

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-data/data.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-data/data.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-data/data.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-data/data.js Wed Oct 27 17:16:02 2010
@@ -215,8 +215,8 @@ opensocial.data.RequestDescriptor.protot
  * @return {Object} The result of evaluation.
  */
 opensocial.data.DataContext.evalExpression = function(expr) {
-  return (new Function("context",
-      "with (context) return " + expr))(opensocial.data.DataContext.getData());
+  return (new Function('context',
+      'with (context) return ' + expr))(opensocial.data.DataContext.getData());
 };
 
 

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-jsonrpc/jsonrpccontainer.js Wed Oct 27 17:16:02 2010
@@ -421,11 +421,11 @@ var JsonRpcRequestItem = function(rpc, o
   JsonRpcContainer.prototype.newActivity = function(opt_params) {
     return new JsonActivity(opt_params, true);
   };
-  
+
   JsonRpcContainer.prototype.newAlbum = function(opt_params) {
 	  return new JsonAlbum(opt_params);
   };
-  
+
   JsonRpcContainer.prototype.newMediaItem = function(mimeType, url, opt_params) {
     opt_params = opt_params || {};
     opt_params['mimeType'] = mimeType;
@@ -508,32 +508,32 @@ JsonRpcContainer.prototype.newFetchMessa
 };
 
 JsonRpcContainer.prototype.newCreateAlbumRequest = function(idSpec, album) {
-  var rpc = { method : "albums.create" };
+  var rpc = { method: 'albums.create' };
   rpc.params = this.translateIdSpec(idSpec);
-  rpc.params.appId = "@app"; 
+  rpc.params.appId = '@app';
   rpc.params.album = album.toJsonObject();
-  
-  return new JsonRpcRequestItem(rpc);	
+
+  return new JsonRpcRequestItem(rpc);
 };
 
 JsonRpcContainer.prototype.newDeleteAlbumRequest = function(idSpec, albumId) {
-  var rpc = { method : "albums.delete" };
+  var rpc = { method: 'albums.delete' };
   rpc.params = this.translateIdSpec(idSpec);
-  rpc.params.appId = "@app"; 	
+  rpc.params.appId = '@app';
   rpc.params.albumId = albumId;
-  
+
   return new JsonRpcRequestItem(rpc);
 };
 
 JsonRpcContainer.prototype.newFetchAlbumsRequest = function(idSpec, opt_params) {
-  var rpc = { method : "albums.get" };
+  var rpc = { method: 'albums.get' };
   rpc.params = this.translateIdSpec(idSpec);
-  rpc.params.appId = "@app";
+  rpc.params.appId = '@app';
 
   return new JsonRpcRequestItem(rpc, function(rawJson) {
     rawJson = rawJson['list'];
     var albums = [];
-    for ( var i = 0; i < rawJson.length; i++) {
+    for (var i = 0; i < rawJson.length; i++) {
       albums.push(new JsonAlbum(rawJson[i]));
     }
 
@@ -542,25 +542,25 @@ JsonRpcContainer.prototype.newFetchAlbum
 };
 
 JsonRpcContainer.prototype.newCreateMediaItemRequest = function(idSpec, albumId, mediaItem) {
-  var rpc = { method : "mediaItems.create" };
+  var rpc = { method: 'mediaItems.create' };
   rpc.params = this.translateIdSpec(idSpec);
-  rpc.params.appId = "@app"; 
+  rpc.params.appId = '@app';
   rpc.params.albumId = albumId;
   rpc.params.mediaItem = mediaItem.toJsonObject();
-  
+
   return new JsonRpcRequestItem(rpc);
 };
 
 JsonRpcContainer.prototype.newFetchMediaItemsRequest = function(idSpec, albumId, opt_params) {
-  var rpc = { method : "mediaItems.get" };
+  var rpc = { method: 'mediaItems.get' };
   rpc.params = this.translateIdSpec(idSpec);
-  rpc.params.appId = "@app";
+  rpc.params.appId = '@app';
   rpc.params.albumId = albumId;
 
   return new JsonRpcRequestItem(rpc, function(rawJson) {
     rawJson = rawJson['list'];
     var mediaItems = [];
-    for ( var i = 0; i < rawJson.length; i++) {
+    for (var i = 0; i < rawJson.length; i++) {
       mediaItems.push(new JsonMediaItem(rawJson[i]));
     }
 

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-reference/album.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-reference/album.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-reference/album.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-reference/album.js Wed Oct 27 17:16:02 2010
@@ -79,7 +79,7 @@ opensocial.Album.Field = {
    *
    * @member opensocial.Album.Field
    */
-  MEDIA_ITEM_COUNT : 'mediaItemCount',
+  MEDIA_ITEM_COUNT: 'mediaItemCount',
 
 
   /**
@@ -87,7 +87,7 @@ opensocial.Album.Field = {
    *
    * @member opensocial.Album.Field
    */
-  MEDIA_MIME_TYPE : 'mediaMimeType',
+  MEDIA_MIME_TYPE: 'mediaMimeType',
 
 
   /**
@@ -95,7 +95,7 @@ opensocial.Album.Field = {
    *
    * @member opensocial.Album.Field
    */
-  MEDIA_TYPE : 'mediaType',
+  MEDIA_TYPE: 'mediaType',
 
 
   /**

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-reference/container.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-reference/container.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-reference/container.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-reference/container.js Wed Oct 27 17:16:02 2010
@@ -377,13 +377,13 @@ opensocial.Container.prototype.newFetchA
 
 /**
  * Creates an item to request media items from the container.
- * 
+ *
  * @param {opensocial.IdSpec}
  *          idSpec An IdSpec used to specify which media items to fetch.
  * @param {string}
  *          albumId The id of the album to fetch MediaItems from.
  * @param {Object.<Object, Object>=} opt_params Additional parameters to pass to the request.
- * @return {Object} A request object
+ * @return {Object} A request object.
  */
 opensocial.Container.prototype.newFetchMediaItemsRequest = function(idSpec, opt_params) {};
 

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-reference/datarequest.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-reference/datarequest.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-reference/datarequest.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-reference/datarequest.js Wed Oct 27 17:16:02 2010
@@ -451,7 +451,7 @@ opensocial.DataRequest.MediaItemRequestF
    *
    * @member opensocial.DataRequest.MediaItemRequestFields
    */
-  FIRST : 'first',
+  FIRST: 'first',
 
   /**
    * The maximum number of items to fetch; defaults to 20.
@@ -459,7 +459,7 @@ opensocial.DataRequest.MediaItemRequestF
    *
    * @member opensocial.DataRequest.MediaItemRequestFields
    */
-  MAX : 'max'
+  MAX: 'max'
 };
 
 /**
@@ -648,33 +648,33 @@ opensocial.DataRequest.prototype.newFetc
  */
 opensocial.DataRequest.prototype.newFetchAlbumsRequest = function(idSpec, opt_params) {
   opt_params = opt_params || {};
-  
+
   var fields = opensocial.DataRequest.AlbumRequestFields;
 
   this.addDefaultParam(opt_params, fields.FIRST, 0);
   this.addDefaultParam(opt_params, fields.MAX, 20);
-  
+
   return opensocial.Container.get().newFetchAlbumsRequest(idSpec, opt_params);
 };
 
 /**
  * Creates an item to request media items from the container.
- * 
+ *
  * @param {opensocial.IdSpec}
  *          idSpec An IdSpec used to specify which media items to fetch.
  * @param {string}
  *          albumId The id of the album to fetch media items from.
  * @param {Object.<Object, Object>=} opt_params Additional parameters to pass to the request.
- * @return {Object} A request object
+ * @return {Object} A request object.
  */
 opensocial.DataRequest.prototype.newFetchMediaItemsRequest = function(idSpec, albumId, opt_params) {
   opt_params = opt_params || {};
-  
+
   var fields = opensocial.DataRequest.MediaItemRequestFields;
 
   this.addDefaultParam(opt_params, fields.FIRST, 0);
   this.addDefaultParam(opt_params, fields.MAX, 20);
-  
+
   return opensocial.Container.get().newFetchMediaItemsRequest(idSpec, albumId, opt_params);
 };
 

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-reference/mediaitem.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-reference/mediaitem.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-reference/mediaitem.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-reference/mediaitem.js Wed Oct 27 17:16:02 2010
@@ -93,129 +93,129 @@ opensocial.MediaItem.Type = {
  * @name opensocial.MediaItem.Field
  */
 opensocial.MediaItem.Field = {
-		
+
   /**
    * The album to which the media item belongs, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  ALBUM_ID : 'albumId',
- 	
+  ALBUM_ID: 'albumId',
+
   /**
    * The creation time associated with the media item - assigned by container in UTC, specified as a String.
    * @member opensocial.MediaItem.Field
   */
-  CREATED : 'created',
-  	
+  CREATED: 'created',
+
   /**
    * The description of the media item, specified as a String.
-   * 
+   *
    * @member opensocial.MediaItem.Field
    */
-  DESCRIPTION : 'description',
-  	
+  DESCRIPTION: 'description',
+
   /**
    * An integer specified for audio/video clips - playtime length in seconds, set to -1/not defined if unknown.
    * @member opensocial.MediaItem.Field
    */
-  DURATION : 'duration',
-  	
+  DURATION: 'duration',
+
   /**
    * A long specified the number of bytes (set to -1/undefined if unknown).
    * @member opensocial.MediaItem.Field
    */
-  FILE_SIZE : 'fileSize',
-  	
+  FILE_SIZE: 'fileSize',
+
   /**
    * An id associated with the media item, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  ID : 'id',
+  ID: 'id',
 
   /**
-   * A language associated with the media item in ISO 639-3 format, specified as a String. 
+   * A language associated with the media item in ISO 639-3 format, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  LANGUAGE : 'language',
+  LANGUAGE: 'language',
 
   /**
    * An update time associated with the media item - assigned by container in UTC, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  LAST_UPDATED : 'lastUpdated',
+  LAST_UPDATED: 'lastUpdated',
 
   /**
    * A location corresponding to the media item, specified as a <a href="opensocial.MediaItem.html"> object.
    * @member opensocial.MediaItem.Field
    */
-  LOCATION : 'location',
-			
+  LOCATION: 'location',
+
   /**
    * The MIME type of media, specified as a String.
    * @member opensocial.MediaItem.Field
    */
   MIME_TYPE: 'mimeType',
-  
+
   /**
    * A number of comments on the photo, specified as a integer.
    * @member opensocial.MediaItem.Field
    */
-  NUM_COMMENTS : 'numComments',
-  
+  NUM_COMMENTS: 'numComments',
+
   /**
    * A number of views for the media item, specified as a integer.
    * @member opensocial.MediaItem.Field
    */
-  NUM_VIEWS : 'numViews',
-  
+  NUM_VIEWS: 'numViews',
+
   /**
    * A number of votes received for voting, specified as a integer.
    * @member opensocial.MediaItem.Field
    */
-  NUM_VOTES : 'numVotes',
-  
+  NUM_VOTES: 'numVotes',
+
   /**
    * An average rating of the media item on a scale of 0-10, specified as a integer.
    * @member opensocial.MediaItem.Field
    */
-  RATING : 'rating',
-  
+  RATING: 'rating',
+
   /**
    * A string specified for streaming/live content - time when the content is available.
    * @member opensocial.MediaItem.Field
    */
-  START_TIME : 'startTime',
-  
+  START_TIME: 'startTime',
+
   /**
    * An array of string (IDs) of people tagged in the media item, specified as an array of Strings.
    * @member opensocial.MediaItem.Field
    */
-  TAGGED_PEOPLE : 'taggedPeople',
-  
+  TAGGED_PEOPLE: 'taggedPeople',
+
   /**
    * Tags associated with this media item, specified as an array of Strings.
    * @member opensocial.MediaItem.Field
    */
-  TAGS : 'tags',
-  
+  TAGS: 'tags',
+
   /**
    * URL to a thumbnail image of the media item, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  THUMBNAIL_URL : 'thumbnailUrl',
-  
+  THUMBNAIL_URL: 'thumbnailUrl',
+
   /**
    * A string describing the media item, specified as a String.
    * @member opensocial.MediaItem.Field
    */
-  TITLE : 'title',
-	  
+  TITLE: 'title',
+
   /**
    * The type of media, specified as a
    * <a href="opensocial.MediaItem.Type.html">
    * <code>MediaItem.Type</code></a> object.
    * @member opensocial.MediaItem.Field
    */
-  TYPE : 'type',
+  TYPE: 'type',
 
   /**
    * A string specifying the URL where the media can be found.

Modified: shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js (original)
+++ shindig/trunk/features/src/main/javascript/features/opensocial-templates/compiler.js Wed Oct 27 17:16:02 2010
@@ -580,7 +580,7 @@ os.processTextContent_ = function(fromNo
       !toNode.getAttribute(os.ATT_customtag) &&
       fromNode.firstChild.nodeType == DOM_TEXT_NODE) {
     var substitution = os.parseAttribute_(fromNode.firstChild.data);
-    if (toNode.nodeName == "SCRIPT") {
+    if (toNode.nodeName == 'SCRIPT') {
       toNode.text = os.trimWhitespaceForIE_(fromNode.firstChild.data, true, true);
     } if (substitution) {
       toNode.setAttribute(ATT_content, substitution);

Modified: shindig/trunk/features/src/main/javascript/features/rpc/nix.transport.js
URL: http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/rpc/nix.transport.js?rev=1028043&r1=1028042&r2=1028043&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/rpc/nix.transport.js (original)
+++ shindig/trunk/features/src/main/javascript/features/rpc/nix.transport.js Wed Oct 27 17:16:02 2010
@@ -110,7 +110,7 @@ gadgets.rpctx.nix = function() {
     // "in" works because it merely checks for the prescence of
     // the key, rather than actually accessing the object's property.
     // This is just a sanity check, not a validity check.
-    if (!handler && window.opener && "GetAuthToken" in window.opener) {
+    if (!handler && window.opener && 'GetAuthToken' in window.opener) {
       handler = window.opener;
 
       // Create the channel to the parent/container.