You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2013/06/29 03:57:52 UTC

[2/2] git commit: Fix require paths that were broken by plugin id changes

Fix require paths that were broken by plugin id changes


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/ff587d40
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/tree/ff587d40
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/diff/ff587d40

Branch: refs/heads/master
Commit: ff587d400e704fab28931f9e82db39863ef9c63f
Parents: a025cdd
Author: Andrew Grieve <ag...@chromium.org>
Authored: Fri Jun 28 19:46:10 2013 -0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Fri Jun 28 21:39:07 2013 -0400

----------------------------------------------------------------------
 docs/parameter/cameraError.md   | 2 +-
 docs/parameter/cameraSuccess.md | 2 +-
 test/camera/index.html          | 2 +-
 www/Camera.js                   | 4 ++--
 www/CameraPopoverOptions.js     | 2 +-
 5 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ff587d40/docs/parameter/cameraError.md
----------------------------------------------------------------------
diff --git a/docs/parameter/cameraError.md b/docs/parameter/cameraError.md
index 7ee091b..f36840f 100644
--- a/docs/parameter/cameraError.md
+++ b/docs/parameter/cameraError.md
@@ -29,4 +29,4 @@ onError callback function that provides an error message.
 Parameters
 ----------
 
-- __message:__ The message is provided by the device's native code. (`String`)
\ No newline at end of file
+- __message:__ The message is provided by the device's native code. (`String`)

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ff587d40/docs/parameter/cameraSuccess.md
----------------------------------------------------------------------
diff --git a/docs/parameter/cameraSuccess.md b/docs/parameter/cameraSuccess.md
index 773fba4..e57b296 100644
--- a/docs/parameter/cameraSuccess.md
+++ b/docs/parameter/cameraSuccess.md
@@ -39,4 +39,4 @@ Example
     function cameraCallback(imageData) {
         var image = document.getElementById('myImage');
         image.src = "data:image/jpeg;base64," + imageData;
-    }
\ No newline at end of file
+    }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ff587d40/test/camera/index.html
----------------------------------------------------------------------
diff --git a/test/camera/index.html b/test/camera/index.html
index f761fbf..83285e7 100644
--- a/test/camera/index.html
+++ b/test/camera/index.html
@@ -340,7 +340,7 @@
         document.addEventListener("deviceready", function() {
             deviceReady = true;
             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);
             createOptionsEl('sourceType', Camera.PictureSourceType, camPictureSourceTypeDefault);
             createOptionsEl('destinationType', Camera.DestinationType, camDestinationTypeDefault);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ff587d40/www/Camera.js
----------------------------------------------------------------------
diff --git a/www/Camera.js b/www/Camera.js
index d6af1e9..db34bb9 100644
--- a/www/Camera.js
+++ b/www/Camera.js
@@ -21,8 +21,8 @@
 
 var argscheck = require('cordova/argscheck'),
     exec = require('cordova/exec'),
-    Camera = require('org.apache.cordova.core.CameraLauncher.Camera'),
-    CameraPopoverHandle = require('org.apache.cordova.core.CameraLauncher.CameraPopoverHandle');
+    Camera = require('org.apache.cordova.core.camera.Camera'),
+    CameraPopoverHandle = require('org.apache.cordova.core.camera.CameraPopoverHandle');
 
 var cameraExport = {};
 

http://git-wip-us.apache.org/repos/asf/cordova-plugin-camera/blob/ff587d40/www/CameraPopoverOptions.js
----------------------------------------------------------------------
diff --git a/www/CameraPopoverOptions.js b/www/CameraPopoverOptions.js
index 36858a9..3d80930 100644
--- a/www/CameraPopoverOptions.js
+++ b/www/CameraPopoverOptions.js
@@ -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