Clarify/correct a couple Zotero.Item file method comments

This commit is contained in:
Dan Stillman 2016-04-07 21:09:08 -04:00
parent 14341ca16c
commit d2a5181637

View file

@ -2172,7 +2172,7 @@ Zotero.Item.prototype.getFilePath = function () {
/** /**
* Get the absolute path for the attachment, if it exists * Get the absolute path for the attachment, if the file exists
* *
* @return {Promise<String|false>} - A promise for either the absolute path of the attachment * @return {Promise<String|false>} - A promise for either the absolute path of the attachment
* or false for invalid paths or if the file doesn't exist * or false for invalid paths or if the file doesn't exist
@ -2291,7 +2291,6 @@ Zotero.Item.prototype.getFilePathAsync = Zotero.Promise.coroutine(function* () {
}); });
/** /**
* Update file existence state of this item and best attachment state of parent item * Update file existence state of this item and best attachment state of parent item
*/ */
@ -2354,8 +2353,6 @@ Zotero.Item.prototype.getFilename = function () {
/** /**
* Asynchronous cached check for file existence, used for items view * Asynchronous cached check for file existence, used for items view
*
* This is updated only initially and on subsequent getFilePathAsync() calls.
*/ */
Zotero.Item.prototype.fileExists = Zotero.Promise.coroutine(function* () { Zotero.Item.prototype.fileExists = Zotero.Promise.coroutine(function* () {
if (!this.isAttachment()) { if (!this.isAttachment()) {