www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit ca30ea2ff842b2557aefc3fd77f18a305f6b6275
parent 9e8d822b9045bdc788ac953400860939797669c1
Author: Dan Stillman <dstillman@zotero.org>
Date:   Fri, 21 Nov 2008 08:32:49 +0000

Register difference between tags if linked items change


Diffstat:
Mchrome/content/zotero/xpcom/data/tag.js | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/tag.js b/chrome/content/zotero/xpcom/data/tag.js @@ -411,6 +411,11 @@ Zotero.Tag.prototype.diff = function (tag, includeMatches, ignoreOnlyDateModifie var d1 = Zotero.Utilities.prototype.arrayDiff( thisData.linkedItems, otherData.linkedItems ); + var d2 = Zotero.Utilities.prototype.arrayDiff( + otherData.linkedItems, thisData.linkedItems + ); + numDiffs += d1.length; + numDiffs += d2.length; // DEBUG: ignoreOnlyDateModified wouldn't work if includeMatches was set? if (numDiffs == 0 ||