mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-20 23:56:20 +08:00
Update JS snapshot to version 2.10.0-dev (via coho)
This commit is contained in:
parent
937056fcaf
commit
fd02e5a07e
34
framework/assets/www/cordova.js
vendored
34
framework/assets/www/cordova.js
vendored
@ -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) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user