cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: [CB-4131] Use relative require paths in contact plugin
Date Tue, 09 Jul 2013 19:11:06 GMT
Updated Branches:
  refs/heads/master e0958ce31 -> bdab26874


[CB-4131] Use relative require paths in contact plugin


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/commit/bdab2687
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/tree/bdab2687
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/diff/bdab2687

Branch: refs/heads/master
Commit: bdab26874e8cc5d1ce66554a0fac367728fbd6de
Parents: e0958ce
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Jul 9 14:54:01 2013 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Jul 9 14:54:01 2013 -0400

----------------------------------------------------------------------
 www/Contact.js      | 4 ++--
 www/contacts.js     | 4 ++--
 www/ios/Contact.js  | 2 +-
 www/ios/contacts.js | 2 +-
 4 files changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/bdab2687/www/Contact.js
----------------------------------------------------------------------
diff --git a/www/Contact.js b/www/Contact.js
index 72e4840..9c46a0c 100644
--- a/www/Contact.js
+++ b/www/Contact.js
@@ -21,7 +21,7 @@
 
 var argscheck = require('cordova/argscheck'),
     exec = require('cordova/exec'),
-    ContactError = require('org.apache.cordova.core.contacts.ContactError'),
+    ContactError = require('./ContactError'),
     utils = require('cordova/utils');
 
 /**
@@ -160,7 +160,7 @@ Contact.prototype.save = function(successCB, errorCB) {
     var success = function(result) {
         if (result) {
             if (successCB) {
-                var fullContact = require('org.apache.cordova.core.contacts.contacts').create(result);
+                var fullContact = require('./contacts').create(result);
                 successCB(convertIn(fullContact));
             }
         }

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/bdab2687/www/contacts.js
----------------------------------------------------------------------
diff --git a/www/contacts.js b/www/contacts.js
index cf5f574..5e6b4db 100644
--- a/www/contacts.js
+++ b/www/contacts.js
@@ -21,9 +21,9 @@
 
 var argscheck = require('cordova/argscheck'),
     exec = require('cordova/exec'),
-    ContactError = require('org.apache.cordova.core.contacts.ContactError'),
+    ContactError = require('./ContactError'),
     utils = require('cordova/utils'),
-    Contact = require('org.apache.cordova.core.contacts.Contact');
+    Contact = require('./Contact');
 
 /**
 * Represents a group of Contacts.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/bdab2687/www/ios/Contact.js
----------------------------------------------------------------------
diff --git a/www/ios/Contact.js b/www/ios/Contact.js
index ebee167..b40c41a 100644
--- a/www/ios/Contact.js
+++ b/www/ios/Contact.js
@@ -20,7 +20,7 @@
 */
 
 var exec = require('cordova/exec'),
-    ContactError = require('org.apache.cordova.core.contacts.ContactError');
+    ContactError = require('./ContactError');
 
 /**
  * Provides iOS Contact.display API.

http://git-wip-us.apache.org/repos/asf/cordova-plugin-contacts/blob/bdab2687/www/ios/contacts.js
----------------------------------------------------------------------
diff --git a/www/ios/contacts.js b/www/ios/contacts.js
index 9a1438a..67cf421 100644
--- a/www/ios/contacts.js
+++ b/www/ios/contacts.js
@@ -54,7 +54,7 @@ module.exports = {
          *
          */
          var win = function(result) {
-             var fullContact = require('org.apache.cordova.core.contacts.contacts').create(result);
+             var fullContact = require('./contacts').create(result);
             successCallback(fullContact.id, fullContact);
        };
         exec(win, null, "Contacts","chooseContact", [options]);


Mime
View raw message