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

This commit is contained in:
Joe Bowser 2013-11-04 09:50:37 -08:00
parent 6e4ef508e8
commit 31195a1817

View File

@ -1,5 +1,5 @@
// Platform: android // Platform: android
// 3.2.0-dev-5ad41a7 // 3.2.0-rc1
/* /*
Licensed to the Apache Software Foundation (ASF) under one Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file or more contributor license agreements. See the NOTICE file
@ -19,7 +19,7 @@
under the License. under the License.
*/ */
;(function() { ;(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 // file: lib/scripts/require.js
/*jshint -W079 */ /*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 // file: lib/common/init.js
define("cordova/init", function(require, exports, module) { define("cordova/init", function(require, exports, module) {