diff --git a/framework/assets/www/cordova.js b/framework/assets/www/cordova.js index 0c1edecb..15db4b2b 100644 --- a/framework/assets/www/cordova.js +++ b/framework/assets/www/cordova.js @@ -1,5 +1,5 @@ // Platform: android -// 3.2.0-dev-5ad41a7 +// 3.3.0-dev-aac4947 /* 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-aac4947'; // file: lib/scripts/require.js /*jshint -W079 */ @@ -1074,6 +1074,36 @@ module.exports = androidExec; }); +// 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) {