commit 43effcb1a6b3557fa4b76f87049098110a13a0f9
parent 0bb4b0afdd85521a73f82d7df042502877fcc715
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 11 Jan 2011 19:44:56 +0000
Update a couple comments
Diffstat:
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js
@@ -345,8 +345,7 @@ Zotero.Item.prototype.loadFromRow = function(row, reload) {
this._init();
}
- // If necessary or reloading, set the type, initialize this._itemData,
- // and reset _itemDataLoaded
+ // If necessary or reloading, set the type and reinitialize this._itemData
if (reload || (!this._itemTypeID && row.itemTypeID)) {
this.setType(row.itemTypeID, true);
}
diff --git a/chrome/content/zotero/xpcom/storage/webdav.js b/chrome/content/zotero/xpcom/storage/webdav.js
@@ -1302,9 +1302,9 @@ Zotero.Sync.Storage.Session.WebDAV.prototype.purgeOrphanedStorageFiles = functio
return;
}
+ // If recently purged, skip
var lastpurge = Zotero.Prefs.get('lastWebDAVOrphanPurge');
var days = 10;
- // Already purged within the last week
if (lastpurge && new Date(lastpurge * 1000) > (new Date() - (1000 * 60 * 60 * 24 * days))) {
return;
}