mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-07 23:03:11 +08:00
Update JS snapshot to version 3.7.0-dev (via coho)
This commit is contained in:
parent
e31c911c30
commit
cdfa13b265
27
framework/assets/www/cordova.js
vendored
27
framework/assets/www/cordova.js
vendored
@ -1,5 +1,5 @@
|
|||||||
// Platform: android
|
// Platform: android
|
||||||
// 3.7.0-dev-1258511
|
// 8ca0f3b2b87e0759c5236b91c80f18438544409c
|
||||||
/*
|
/*
|
||||||
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.7.0-dev-1258511';
|
var PLATFORM_VERSION_BUILD_LABEL = '3.7.0-dev';
|
||||||
// file: src/scripts/require.js
|
// file: src/scripts/require.js
|
||||||
|
|
||||||
/*jshint -W079 */
|
/*jshint -W079 */
|
||||||
@ -175,7 +175,8 @@ function createEvent(type, data) {
|
|||||||
var cordova = {
|
var cordova = {
|
||||||
define:define,
|
define:define,
|
||||||
require:require,
|
require:require,
|
||||||
version:CORDOVA_JS_BUILD_LABEL,
|
version:PLATFORM_VERSION_BUILD_LABEL,
|
||||||
|
platformVersion:PLATFORM_VERSION_BUILD_LABEL,
|
||||||
platformId:platform.id,
|
platformId:platform.id,
|
||||||
/**
|
/**
|
||||||
* Methods to add/remove your own addEventListener hijacking on document + window.
|
* Methods to add/remove your own addEventListener hijacking on document + window.
|
||||||
@ -1183,6 +1184,16 @@ function replaceNavigator(origNavigator) {
|
|||||||
for (var key in origNavigator) {
|
for (var key in origNavigator) {
|
||||||
if (typeof origNavigator[key] == 'function') {
|
if (typeof origNavigator[key] == 'function') {
|
||||||
newNavigator[key] = origNavigator[key].bind(origNavigator);
|
newNavigator[key] = origNavigator[key].bind(origNavigator);
|
||||||
|
} else {
|
||||||
|
(function(k) {
|
||||||
|
Object.defineProperty(newNavigator, k, {
|
||||||
|
get: function() {
|
||||||
|
return origNavigator[k];
|
||||||
|
},
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true
|
||||||
|
});
|
||||||
|
})(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1302,6 +1313,16 @@ function replaceNavigator(origNavigator) {
|
|||||||
for (var key in origNavigator) {
|
for (var key in origNavigator) {
|
||||||
if (typeof origNavigator[key] == 'function') {
|
if (typeof origNavigator[key] == 'function') {
|
||||||
newNavigator[key] = origNavigator[key].bind(origNavigator);
|
newNavigator[key] = origNavigator[key].bind(origNavigator);
|
||||||
|
} else {
|
||||||
|
(function(k) {
|
||||||
|
Object.defineProperty(newNavigator, k, {
|
||||||
|
get: function() {
|
||||||
|
return origNavigator[k];
|
||||||
|
},
|
||||||
|
configurable: true,
|
||||||
|
enumerable: true
|
||||||
|
});
|
||||||
|
})(key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user