www

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

commit 39fd9b55d72db067937de725efdc946b2b31f1b2
parent 727426fd4ff8d1016a1b1a163483e63aad5c7c2d
Author: Dan Stillman <dstillman@zotero.org>
Date:   Mon,  1 Dec 2008 08:33:07 +0000

Updated comments


Diffstat:
Mchrome/content/zotero/xpcom/data/item.js | 10++++++----
Mchrome/content/zotero/xpcom/data/items.js | 9+++++----
2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/chrome/content/zotero/xpcom/data/item.js b/chrome/content/zotero/xpcom/data/item.js @@ -3071,10 +3071,12 @@ Zotero.Item.prototype.clone = function(includePrimary) { /** -* Delete item from database and clear from Zotero.Items internal array -* -* Items.erase() should be used instead of this -**/ + * Delete item from database and clear from Zotero.Items internal array + * + * Items.erase() should be used instead of this + * + * @param {Boolean} eraseChildren Erase child items as well + */ Zotero.Item.prototype.erase = function(deleteChildren) { if (!this.id) { return false; diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js @@ -321,10 +321,11 @@ Zotero.Items = new function() { /** - * Delete item(s) from database and clear from internal array - * - * If _eraseChildren_ is true, erase child items as well - **/ + * Delete item(s) from database and clear from internal array + * + * @param {Integer|Integer[]} ids Item ids + * @param {Boolean} eraseChildren Erase child items as well + */ function erase(ids, eraseChildren) { ids = Zotero.flattenArguments(ids);