Author: lindner
Date: Mon May 10 19:49:23 2010
New Revision: 942872

URL: http://svn.apache.org/viewvc?rev=942872&view=rev
Log:
move osapi to globals

Modified:
    shindig/trunk/features/src/main/javascript/features/globals/globals.js
    shindig/trunk/features/src/main/javascript/features/osapi/batch.js
    shindig/trunk/features/src/main/javascript/features/osapi/feature.xml
    
shindig/trunk/features/src/main/javascript/features/osapi/gadgetsrpctransport.js
    shindig/trunk/features/src/main/javascript/features/osapi/osapi.js
    
shindig/trunk/features/src/main/javascript/features/shindig.container/osapi.js

Modified: shindig/trunk/features/src/main/javascript/features/globals/globals.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/globals/globals.js?rev=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/globals/globals.js 
(original)
+++ shindig/trunk/features/src/main/javascript/features/globals/globals.js Mon 
May 10 19:49:23 2010
@@ -9,3 +9,9 @@ var gadgets = gadgets || {}; 
  * @type {Object} 
  */
 var shindig = shindig || {};
+
+/** 
+ * @namespace The global osapi namespace, used for opensocial API specific 
extensions
+ * @type {Object} 
+ */
+var osapi = osapi || {};

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=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/osapi/batch.js 
(original)
+++ shindig/trunk/features/src/main/javascript/features/osapi/batch.js Mon May 
10 19:49:23 2010
@@ -16,8 +16,6 @@
  * specific language governing permissions and limitations under the License.
  */
 
-var osapi = osapi || {};
-
 (function() {
 
   /**

Modified: shindig/trunk/features/src/main/javascript/features/osapi/feature.xml
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/osapi/feature.xml?rev=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/osapi/feature.xml 
(original)
+++ shindig/trunk/features/src/main/javascript/features/osapi/feature.xml Mon 
May 10 19:49:23 2010
@@ -19,6 +19,7 @@
 -->
 <feature>
   <name>osapi</name>
+  <dependency>globals</dependency>
   <dependency>core.auth</dependency>
   <dependency>core.config</dependency>
   <dependency>core.io</dependency>

Modified: 
shindig/trunk/features/src/main/javascript/features/osapi/gadgetsrpctransport.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/osapi/gadgetsrpctransport.js?rev=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- 
shindig/trunk/features/src/main/javascript/features/osapi/gadgetsrpctransport.js
 (original)
+++ 
shindig/trunk/features/src/main/javascript/features/osapi/gadgetsrpctransport.js
 Mon May 10 19:49:23 2010
@@ -15,7 +15,6 @@
  * KIND, either express or implied. See the License for the
  * specific language governing permissions and limitations under the License.
  */
-var osapi = osapi || {};
 
 /**
  * A transport for osapi based on gadgets.rpc. Allows osapi to expose APIs 
requiring container

Modified: shindig/trunk/features/src/main/javascript/features/osapi/osapi.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/osapi/osapi.js?rev=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- shindig/trunk/features/src/main/javascript/features/osapi/osapi.js 
(original)
+++ shindig/trunk/features/src/main/javascript/features/osapi/osapi.js Mon May 
10 19:49:23 2010
@@ -16,7 +16,6 @@
  * specific language governing permissions and limitations under the License.
  */
 
-var osapi = osapi || {};
 (function() {
   /**
    * Called by the transports for each service method that they expose

Modified: 
shindig/trunk/features/src/main/javascript/features/shindig.container/osapi.js
URL: 
http://svn.apache.org/viewvc/shindig/trunk/features/src/main/javascript/features/shindig.container/osapi.js?rev=942872&r1=942871&r2=942872&view=diff
==============================================================================
--- 
shindig/trunk/features/src/main/javascript/features/shindig.container/osapi.js 
(original)
+++ 
shindig/trunk/features/src/main/javascript/features/shindig.container/osapi.js 
Mon May 10 19:49:23 2010
@@ -20,8 +20,6 @@
  * @fileoverview Base OSAPI binding
  */
 
-var osapi = osapi || {};
-
 /**
  * Container-side binding for the gadgetsrpctransport used by osapi. Containers
  * add services to the client-side osapi implementation by defining them in 
the osapi
@@ -107,4 +105,4 @@ if (gadgets && gadgets.rpc) { //Only def
 
   // Register the osapi RPC dispatcher.
   gadgets.rpc.register("osapi._handleGadgetRpcMethod", 
osapi._handleGadgetRpcMethod);
-}
\ No newline at end of file
+}


Reply via email to