You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/06/14 02:48:44 UTC
[2/2] git commit: updated test file
updated test file
Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/commit/ac4e93c8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/ac4e93c8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/ac4e93c8
Branch: refs/heads/master
Commit: ac4e93c86ebbfff9c12471e81ac3779b8f5f74d2
Parents: abffce6
Author: Steven Gill <st...@gmail.com>
Authored: Thu Jun 13 17:48:38 2013 -0700
Committer: Steven Gill <st...@gmail.com>
Committed: Thu Jun 13 17:48:38 2013 -0700
----------------------------------------------------------------------
test/camera/index.html | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ac4e93c8/test/camera/index.html
----------------------------------------------------------------------
diff --git a/test/camera/index.html b/test/camera/index.html
index 2d5eade..08a93f9 100644
--- a/test/camera/index.html
+++ b/test/camera/index.html
@@ -33,8 +33,8 @@
<script type="text/javascript" charset="utf-8">
var deviceReady = false;
- var platformId = cordova.require('cordova/platform').id;
- var CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions');
+ var platformId = null;
+ var CameraPopoverOptions = null;
var pictureUrl = null;
var fileObj = null;
var fileEntry = null;
@@ -339,6 +339,8 @@
function init() {
document.addEventListener("deviceready", function() {
deviceReady = true;
+ platformId = cordova.require('cordova/platform').id;
+ CameraPopoverOptions = cordova.require('org.apache.cordova.CameraLauncher.CameraPopoverOptions');
console.log("Device="+device.platform+" "+device.version);
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);