Update a couple comments

This commit is contained in:
Dan Stillman 2011-01-11 19:44:56 +00:00
parent 0bb4b0afdd
commit 43effcb1a6
2 changed files with 2 additions and 3 deletions

View File

@ -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);
}

View File

@ -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;
}