cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject [1/2] ios commit: Update JS snapshot to version 3.2.0-rc1 (via coho)
Date Mon, 11 Nov 2013 22:33:44 GMT
Updated Branches:
  refs/heads/3.2.x [created] 416f83ccd


Update JS snapshot to version 3.2.0-rc1 (via coho)


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/b2f8d0c8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/b2f8d0c8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/b2f8d0c8

Branch: refs/heads/3.2.x
Commit: b2f8d0c83b9b437a4a6c6186f710eb10823d4ef1
Parents: e44b7fc
Author: Shazron Abdullah <shazron@apache.org>
Authored: Mon Nov 11 14:29:37 2013 -0800
Committer: Shazron Abdullah <shazron@apache.org>
Committed: Mon Nov 11 14:29:37 2013 -0800

----------------------------------------------------------------------
 CordovaLib/cordova.js | 34 ++++++++++++++++++++++++++++++++--
 1 file changed, 32 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/b2f8d0c8/CordovaLib/cordova.js
----------------------------------------------------------------------
diff --git a/CordovaLib/cordova.js b/CordovaLib/cordova.js
index a7832f8..e710792 100644
--- a/CordovaLib/cordova.js
+++ b/CordovaLib/cordova.js
@@ -1,5 +1,5 @@
 // Platform: ios
-// 3.2.0-dev-5ad41a7
+// 3.2.0-rc1
 /*
  Licensed to the Apache Software Foundation (ASF) under one
  or more contributor license agreements.  See the NOTICE file
@@ -19,7 +19,7 @@
  under the License.
 */
 ;(function() {
-var CORDOVA_JS_BUILD_LABEL = '3.2.0-dev-5ad41a7';
+var CORDOVA_JS_BUILD_LABEL = '3.2.0-rc1';
 // file: lib/scripts/require.js
 
 /*jshint -W079 */
@@ -1024,6 +1024,36 @@ module.exports = iOSExec;
 
 });
 
+// file: lib/common/exec/proxy.js
+define("cordova/exec/proxy", function(require, exports, module) {
+
+
+// internal map of proxy function
+var CommandProxyMap = {};
+
+module.exports = {
+
+    // example: cordova.commandProxy.add("Accelerometer",{getCurrentAcceleration: function(successCallback,
errorCallback, options) {...},...);
+    add:function(id,proxyObj) {
+        console.log("adding proxy for " + id);
+        CommandProxyMap[id] = proxyObj;
+        return proxyObj;
+    },
+
+    // cordova.commandProxy.remove("Accelerometer");
+    remove:function(id) {
+        var proxy = CommandProxyMap[id];
+        delete CommandProxyMap[id];
+        CommandProxyMap[id] = null;
+        return proxy;
+    },
+
+    get:function(service,action) {
+        return ( CommandProxyMap[service] ? CommandProxyMap[service][action] : null );
+    }
+};
+});
+
 // file: lib/common/init.js
 define("cordova/init", function(require, exports, module) {
 


Mime
View raw message