Author: chirag
Date: Fri May 14 21:09:14 2010
New Revision: 944472
URL: http://svn.apache.org/viewvc?rev=944472&view=rev
Log:
Tame and expose the opensocial.data.DataContext API to cajoled gadgets.
Code Review: http://codereview.appspot.com/1172043/show
Added:
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/taming.js
Modified:
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/feature.xml
Modified:
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/feature.xml
URL:
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/feature.xml?rev=944472&r1=944471&r2=944472&view=diff
==============================================================================
---
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/feature.xml
(original)
+++
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/feature.xml
Fri May 14 21:09:14 2010
@@ -21,5 +21,6 @@
<name>opensocial-data-context</name>
<gadget>
<script src="datacontext.js"></script>
+ <script src="taming.js"></script>
</gadget>
</feature>
Added:
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/taming.js
URL:
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/opensocial-data-context/taming.js?rev=944472&view=auto
==============================================================================
---
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/taming.js
(added)
+++
shindig/trunk/features/src/main/javascript/features/opensocial-data-context/taming.js
Fri May 14 21:09:14 2010
@@ -0,0 +1,30 @@
+/*
+ * 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.
+ */
+
+/**
+ * @class
+ * Tame and expose the opensocial.data.DataContext API to cajoled gadgets
+ */
+var tamings___ = tamings___ || [];
+tamings___.push(function(imports) {
+ caja___.whitelistFuncs([
+ [opensocial.data, 'getDataContext'],
+ [opensocial.data.DataContext, 'putDataSet']
+ ]);
+});