mirror of
https://github.com/apache/cordova-android.git
synced 2025-02-22 00:32:55 +08:00
Update JS snapshot to version 5.2.0-dev (via coho)
This commit is contained in:
parent
9ef7ddbf20
commit
320558a782
20
bin/templates/project/assets/www/cordova.js
vendored
20
bin/templates/project/assets/www/cordova.js
vendored
@ -1,5 +1,5 @@
|
|||||||
// Platform: android
|
// Platform: android
|
||||||
// 6b83950ffdd6b84977dfae49d8147ef640b8097f
|
// ded62dda172755defaf75378ed007dc05730ec22
|
||||||
/*
|
/*
|
||||||
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 = '5.1.0-dev';
|
var PLATFORM_VERSION_BUILD_LABEL = '5.2.0-dev';
|
||||||
// file: src/scripts/require.js
|
// file: src/scripts/require.js
|
||||||
|
|
||||||
/*jshint -W079 */
|
/*jshint -W079 */
|
||||||
@ -1674,12 +1674,26 @@ function onMessageFromNative(msg) {
|
|||||||
case 'searchbutton':
|
case 'searchbutton':
|
||||||
// App life cycle events
|
// App life cycle events
|
||||||
case 'pause':
|
case 'pause':
|
||||||
case 'resume':
|
|
||||||
// Volume events
|
// Volume events
|
||||||
case 'volumedownbutton':
|
case 'volumedownbutton':
|
||||||
case 'volumeupbutton':
|
case 'volumeupbutton':
|
||||||
cordova.fireDocumentEvent(action);
|
cordova.fireDocumentEvent(action);
|
||||||
break;
|
break;
|
||||||
|
case 'resume':
|
||||||
|
if(arguments.length > 1 && msg.pendingResult) {
|
||||||
|
if(arguments.length === 2) {
|
||||||
|
msg.pendingResult.result = arguments[1];
|
||||||
|
} else {
|
||||||
|
// The plugin returned a multipart message
|
||||||
|
var res = [];
|
||||||
|
for(var i = 1; i < arguments.length; i++) {
|
||||||
|
res.push(arguments[i]);
|
||||||
|
}
|
||||||
|
msg.pendingResult.result = res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cordova.fireDocumentEvent(action, msg);
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
throw new Error('Unknown event action ' + action);
|
throw new Error('Unknown event action ' + action);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user