mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 09:02:50 +08:00
Update JS snapshot to version 4.1.1 (via coho)
This commit is contained in:
parent
7427b15f5f
commit
da3f026974
69
bin/templates/project/assets/www/cordova.js
vendored
69
bin/templates/project/assets/www/cordova.js
vendored
@ -1,5 +1,5 @@
|
|||||||
// Platform: android
|
// Platform: android
|
||||||
// a83e94b489774dc8e514671e81c6154eda650af1
|
// 2c29e187e4206a6a77fba940ef6f77aef5c7eb8c
|
||||||
/*
|
/*
|
||||||
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 PLATFORM_VERSION_BUILD_LABEL = '4.1.0';
|
var PLATFORM_VERSION_BUILD_LABEL = '4.1.1';
|
||||||
// file: src/scripts/require.js
|
// file: src/scripts/require.js
|
||||||
|
|
||||||
/*jshint -W079 */
|
/*jshint -W079 */
|
||||||
@ -328,7 +328,7 @@ module.exports = cordova;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: D:/cordova/cordova-android/cordova-js-src/android/nativeapiprovider.js
|
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/android/nativeapiprovider.js
|
||||||
define("cordova/android/nativeapiprovider", function(require, exports, module) {
|
define("cordova/android/nativeapiprovider", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -351,7 +351,7 @@ module.exports = {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: D:/cordova/cordova-android/cordova-js-src/android/promptbasednativeapi.js
|
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/android/promptbasednativeapi.js
|
||||||
define("cordova/android/promptbasednativeapi", function(require, exports, module) {
|
define("cordova/android/promptbasednativeapi", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -376,7 +376,6 @@ module.exports = {
|
|||||||
// file: src/common/argscheck.js
|
// file: src/common/argscheck.js
|
||||||
define("cordova/argscheck", function(require, exports, module) {
|
define("cordova/argscheck", function(require, exports, module) {
|
||||||
|
|
||||||
var exec = require('cordova/exec');
|
|
||||||
var utils = require('cordova/utils');
|
var utils = require('cordova/utils');
|
||||||
|
|
||||||
var moduleExports = module.exports;
|
var moduleExports = module.exports;
|
||||||
@ -861,7 +860,7 @@ module.exports = channel;
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: D:/cordova/cordova-android/cordova-js-src/exec.js
|
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/exec.js
|
||||||
define("cordova/exec", function(require, exports, module) {
|
define("cordova/exec", function(require, exports, module) {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1230,6 +1229,7 @@ if (!window.console.warn) {
|
|||||||
// Register pause, resume and deviceready channels as events on document.
|
// Register pause, resume and deviceready channels as events on document.
|
||||||
channel.onPause = cordova.addDocumentEventHandler('pause');
|
channel.onPause = cordova.addDocumentEventHandler('pause');
|
||||||
channel.onResume = cordova.addDocumentEventHandler('resume');
|
channel.onResume = cordova.addDocumentEventHandler('resume');
|
||||||
|
channel.onActivated = cordova.addDocumentEventHandler('activated');
|
||||||
channel.onDeviceReady = cordova.addStickyDocumentEventHandler('deviceready');
|
channel.onDeviceReady = cordova.addStickyDocumentEventHandler('deviceready');
|
||||||
|
|
||||||
// Listen for DOMContentLoaded and notify our channel subscribers.
|
// Listen for DOMContentLoaded and notify our channel subscribers.
|
||||||
@ -1357,6 +1357,7 @@ if (!window.console.warn) {
|
|||||||
// Register pause, resume and deviceready channels as events on document.
|
// Register pause, resume and deviceready channels as events on document.
|
||||||
channel.onPause = cordova.addDocumentEventHandler('pause');
|
channel.onPause = cordova.addDocumentEventHandler('pause');
|
||||||
channel.onResume = cordova.addDocumentEventHandler('resume');
|
channel.onResume = cordova.addDocumentEventHandler('resume');
|
||||||
|
channel.onActivated = cordova.addDocumentEventHandler('activated');
|
||||||
channel.onDeviceReady = cordova.addStickyDocumentEventHandler('deviceready');
|
channel.onDeviceReady = cordova.addStickyDocumentEventHandler('deviceready');
|
||||||
|
|
||||||
// Listen for DOMContentLoaded and notify our channel subscribers.
|
// Listen for DOMContentLoaded and notify our channel subscribers.
|
||||||
@ -1500,7 +1501,7 @@ exports.reset();
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: D:/cordova/cordova-android/cordova-js-src/platform.js
|
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/platform.js
|
||||||
define("cordova/platform", function(require, exports, module) {
|
define("cordova/platform", function(require, exports, module) {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
@ -1576,7 +1577,7 @@ function onMessageFromNative(msg) {
|
|||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// file: D:/cordova/cordova-android/cordova-js-src/plugin/android/app.js
|
// file: /Users/steveng/repo/cordova/cordova-android/cordova-js-src/plugin/android/app.js
|
||||||
define("cordova/plugin/android/app", function(require, exports, module) {
|
define("cordova/plugin/android/app", function(require, exports, module) {
|
||||||
|
|
||||||
var exec = require('cordova/exec');
|
var exec = require('cordova/exec');
|
||||||
@ -1672,6 +1673,10 @@ module.exports = {
|
|||||||
// file: src/common/pluginloader.js
|
// file: src/common/pluginloader.js
|
||||||
define("cordova/pluginloader", function(require, exports, module) {
|
define("cordova/pluginloader", function(require, exports, module) {
|
||||||
|
|
||||||
|
/*
|
||||||
|
NOTE: this file is NOT used when we use the browserify workflow
|
||||||
|
*/
|
||||||
|
|
||||||
var modulemapper = require('cordova/modulemapper');
|
var modulemapper = require('cordova/modulemapper');
|
||||||
var urlutil = require('cordova/urlutil');
|
var urlutil = require('cordova/urlutil');
|
||||||
|
|
||||||
@ -1860,15 +1865,14 @@ utils.typeName = function(val) {
|
|||||||
/**
|
/**
|
||||||
* Returns an indication of whether the argument is an array or not
|
* Returns an indication of whether the argument is an array or not
|
||||||
*/
|
*/
|
||||||
utils.isArray = function(a) {
|
utils.isArray = Array.isArray ||
|
||||||
return utils.typeName(a) == 'Array';
|
function(a) {return utils.typeName(a) == 'Array';};
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an indication of whether the argument is a Date or not
|
* Returns an indication of whether the argument is a Date or not
|
||||||
*/
|
*/
|
||||||
utils.isDate = function(d) {
|
utils.isDate = function(d) {
|
||||||
return utils.typeName(d) == 'Date';
|
return (d instanceof Date);
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1902,17 +1906,25 @@ utils.clone = function(obj) {
|
|||||||
* Returns a wrapped version of the function
|
* Returns a wrapped version of the function
|
||||||
*/
|
*/
|
||||||
utils.close = function(context, func, params) {
|
utils.close = function(context, func, params) {
|
||||||
if (typeof params == 'undefined') {
|
return function() {
|
||||||
return function() {
|
var args = params || arguments;
|
||||||
return func.apply(context, arguments);
|
return func.apply(context, args);
|
||||||
};
|
};
|
||||||
} else {
|
|
||||||
return function() {
|
|
||||||
return func.apply(context, params);
|
|
||||||
};
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
function UUIDcreatePart(length) {
|
||||||
|
var uuidpart = "";
|
||||||
|
for (var i=0; i<length; i++) {
|
||||||
|
var uuidchar = parseInt((Math.random() * 256), 10).toString(16);
|
||||||
|
if (uuidchar.length == 1) {
|
||||||
|
uuidchar = "0" + uuidchar;
|
||||||
|
}
|
||||||
|
uuidpart += uuidchar;
|
||||||
|
}
|
||||||
|
return uuidpart;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a UUID
|
* Create a UUID
|
||||||
*/
|
*/
|
||||||
@ -1924,6 +1936,7 @@ utils.createUUID = function() {
|
|||||||
UUIDcreatePart(6);
|
UUIDcreatePart(6);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends a child object from a parent object using classical inheritance
|
* Extends a child object from a parent object using classical inheritance
|
||||||
* pattern.
|
* pattern.
|
||||||
@ -1933,6 +1946,7 @@ utils.extend = (function() {
|
|||||||
var F = function() {};
|
var F = function() {};
|
||||||
// extend Child from Parent
|
// extend Child from Parent
|
||||||
return function(Child, Parent) {
|
return function(Child, Parent) {
|
||||||
|
|
||||||
F.prototype = Parent.prototype;
|
F.prototype = Parent.prototype;
|
||||||
Child.prototype = new F();
|
Child.prototype = new F();
|
||||||
Child.__super__ = Parent.prototype;
|
Child.__super__ = Parent.prototype;
|
||||||
@ -1952,18 +1966,7 @@ utils.alert = function(msg) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
function UUIDcreatePart(length) {
|
|
||||||
var uuidpart = "";
|
|
||||||
for (var i=0; i<length; i++) {
|
|
||||||
var uuidchar = parseInt((Math.random() * 256), 10).toString(16);
|
|
||||||
if (uuidchar.length == 1) {
|
|
||||||
uuidchar = "0" + uuidchar;
|
|
||||||
}
|
|
||||||
uuidpart += uuidchar;
|
|
||||||
}
|
|
||||||
return uuidpart;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user