Update JS snapshot to version 2.10.0-dev (via coho)

This commit is contained in:
Joe Bowser 2013-11-01 11:11:13 -07:00
parent 937056fcaf
commit fd02e5a07e

View File

@ -1,5 +1,5 @@
// Platform: android // Platform: android
// 3.2.0-dev-5ad41a7 // 3.3.0-dev-aac4947
/* /*
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.3.0-dev-aac4947';
// 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) {