Fix require paths that were broken by plugin id changes

This commit is contained in:
Andrew Grieve 2013-06-28 19:46:10 -04:00
parent a025cdd4e6
commit ff587d400e
5 changed files with 6 additions and 6 deletions

View File

@ -340,7 +340,7 @@
document.addEventListener("deviceready", function() { document.addEventListener("deviceready", function() {
deviceReady = true; deviceReady = true;
platformId = cordova.require('cordova/platform').id; platformId = cordova.require('cordova/platform').id;
CameraPopoverOptions = cordova.require('org.apache.cordova.core.CameraLauncher.CameraPopoverOptions'); CameraPopoverOptions = cordova.require('org.apache.cordova.core.camera.CameraPopoverOptions');
console.log("Device="+device.platform+" "+device.version); console.log("Device="+device.platform+" "+device.version);
createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault); createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault); createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);

View File

@ -21,8 +21,8 @@
var argscheck = require('cordova/argscheck'), var argscheck = require('cordova/argscheck'),
exec = require('cordova/exec'), exec = require('cordova/exec'),
Camera = require('org.apache.cordova.core.CameraLauncher.Camera'), Camera = require('org.apache.cordova.core.camera.Camera'),
CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle'); CameraPopoverHandle = require('org.apache.cordova.core.camera.CameraPopoverHandle');
var cameraExport = {}; var cameraExport = {};

View File

@ -19,7 +19,7 @@
* *
*/ */
var Camera = require('org.apache.cordova.core.CameraLauncher.Camera'); var Camera = require('org.apache.cordova.core.camera.Camera');
/** /**
* Encapsulates options for iOS Popover image picker * Encapsulates options for iOS Popover image picker