You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2013/11/11 23:33:42 UTC
[2/2] ios commit: Update JS snapshot to version 3.3.0-dev (via coho)
Update JS snapshot to version 3.3.0-dev (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/2d89e235
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/2d89e235
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/2d89e235
Branch: refs/heads/master
Commit: 2d89e2355c08f3313a0626a0c96ea719fcaa876c
Parents: 9a4e9d5
Author: Shazron Abdullah <sh...@apache.org>
Authored: Mon Nov 11 14:31:56 2013 -0800
Committer: Shazron Abdullah <sh...@apache.org>
Committed: Mon Nov 11 14:31:56 2013 -0800
----------------------------------------------------------------------
CordovaLib/cordova.js | 34 ++++++++++++++++++++++++++++++++--
1 file changed, 32 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/2d89e235/CordovaLib/cordova.js
----------------------------------------------------------------------
diff --git a/CordovaLib/cordova.js b/CordovaLib/cordova.js
index a7832f8..903ff1a 100644
--- a/CordovaLib/cordova.js
+++ b/CordovaLib/cordova.js
@@ -1,5 +1,5 @@
// Platform: ios
-// 3.2.0-dev-5ad41a7
+// 3.3.0-dev-c9de1bc
/*
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.3.0-dev-c9de1bc';
// 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) {