[Pkg-mozext-commits] [gcontactsync] 04/31: Issue #47 - Error updating card after being removed warning in log

David Prévot taffit at moszumanska.debian.org
Sun Feb 22 21:34:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository gcontactsync.

commit 688c6338c7880abb42caf7fe6aca6a748b93115c
Author: Josh Geenen <joshgeenen at gmail.com>
Date:   Mon Sep 1 14:35:06 2014 -0500

    Issue #47 - Error updating card after being removed warning in log
---
 src/content/AbListener.js | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/content/AbListener.js b/src/content/AbListener.js
index 7730739..3699ed1 100644
--- a/src/content/AbListener.js
+++ b/src/content/AbListener.js
@@ -82,14 +82,14 @@ com.gContactSync.AbListener = {
       if (aParentDir.isMailList) {
         try {
           aItem.QueryInterface(Components.interfaces.nsIAbCard);
-          var now     = (new Date()).getTime() / 1000,
-              uri     = this.getURI(aParentDir),
-              // the parent of aParentDir (aParentDir is a mailing list, dir is the
-              // directory in which aParentDir is stored)
-              dir     = new com.gContactSync.GAddressBook(com.gContactSync.AbManager.getAbByURI(uri)),
-              contact = new com.gContactSync.TBContact(aItem, dir);
+          var now = (new Date()).getTime() / 1000;
           // the URI of the list's parent
+          var uri = this.getURI(aParentDir);
           uri = uri.substring(0, uri.lastIndexOf("/"));
+          // the parent of aParentDir (aParentDir is a mailing list, dir is the
+          // directory in which aParentDir is stored)
+          var dir = new com.gContactSync.GAddressBook(com.gContactSync.AbManager.getAbByURI(uri));
+          var contact = new com.gContactSync.TBContact(aItem, dir);
           // set the last modified date and update the card
           contact.setValue("LastModifiedDate", now);
           contact.update();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/gcontactsync.git



More information about the Pkg-mozext-commits mailing list