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/02/23 01:53:25 UTC
svn commit: r630369 - in /incubator/shindig/trunk: features/features.txt
features/opensocial-0.6/ features/opensocial-0.6/feature.xml
features/opensocial-0.6/opensocial6to7.js javascript/opensocial6to7.js
Author: doll
Date: Fri Feb 22 16:53:16 2008
New Revision: 630369
URL: http://svn.apache.org/viewvc?rev=630369&view=rev
Log:
Added an opensocial-0.6 feature. This simply depends on opensocial-0.7 and uses the shim file I created before (which has now changed dirs).
Added:
incubator/shindig/trunk/features/opensocial-0.6/
incubator/shindig/trunk/features/opensocial-0.6/feature.xml
incubator/shindig/trunk/features/opensocial-0.6/opensocial6to7.js
- copied, changed from r630353, incubator/shindig/trunk/javascript/opensocial6to7.js
Removed:
incubator/shindig/trunk/javascript/opensocial6to7.js
Modified:
incubator/shindig/trunk/features/features.txt
Modified: incubator/shindig/trunk/features/features.txt
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/features.txt?rev=630369&r1=630368&r2=630369&view=diff
==============================================================================
--- incubator/shindig/trunk/features/features.txt (original)
+++ incubator/shindig/trunk/features/features.txt Fri Feb 22 16:53:16 2008
@@ -5,6 +5,7 @@
features/dynamic-height/feature.xml
features/flash/feature.xml
features/minimessage/feature.xml
+features/opensocial-0.6/feature.xml
features/opensocial-0.7/feature.xml
features/opensocial-reference/feature.xml
features/opensocial-samplecontainer/feature.xml
Added: incubator/shindig/trunk/features/opensocial-0.6/feature.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-0.6/feature.xml?rev=630369&view=auto
==============================================================================
--- incubator/shindig/trunk/features/opensocial-0.6/feature.xml (added)
+++ incubator/shindig/trunk/features/opensocial-0.6/feature.xml Fri Feb 22 16:53:16 2008
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<feature>
+ <name>opensocial-0.6</name>
+ <dependency>opensocial-0.7</dependency>
+ <gadget>
+ <script src="opensocial6to7.js"></script>
+ </gadget>
+</feature>
Copied: incubator/shindig/trunk/features/opensocial-0.6/opensocial6to7.js (from r630353, incubator/shindig/trunk/javascript/opensocial6to7.js)
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-0.6/opensocial6to7.js?p2=incubator/shindig/trunk/features/opensocial-0.6/opensocial6to7.js&p1=incubator/shindig/trunk/javascript/opensocial6to7.js&r1=630353&r2=630369&rev=630369&view=diff
==============================================================================
--- incubator/shindig/trunk/javascript/opensocial6to7.js (original)
+++ incubator/shindig/trunk/features/opensocial-0.6/opensocial6to7.js Fri Feb 22 16:53:16 2008
@@ -41,16 +41,19 @@
opensocial.Person.prototype.getFieldOld = opensocial.Person.prototype.getField;
opensocial.Person.prototype.getField = function(fieldname) {
- if (fieldname == opensocial.Person.Field.NAME) {
- return this.getFieldOld(opensocial.Person.Field.NAME).getField(opensocial.Name.Field.UNSTRUCTURED);
- } else {
- return this.getFieldOld(fieldname);
- }
+ if (fieldname == opensocial.Person.Field.NAME) {
+ return this.getFieldOld(opensocial.Person.Field.NAME)
+ .getField(opensocial.Name.Field.UNSTRUCTURED);
+ } else {
+ return this.getFieldOld(fieldname);
+ }
}
-opensocial.Person.prototype.getDisplayNameOld = opensocial.Person.getDisplayName;
+opensocial.Person.prototype.getDisplayNameOld
+ = opensocial.Person.getDisplayName;
opensocial.Person.prototype.getDisplayName = function() {
- return this.getFieldOld(opensocial.Person.Field.NAME).getField(opensocial.Name.Field.UNSTRUCTURED);
+ return this.getFieldOld(opensocial.Person.Field.NAME)
+ .getField(opensocial.Name.Field.UNSTRUCTURED);
}
opensocial.newActivityOld = opensocial.newActivity;