Updated comments

This commit is contained in:
Dan Stillman 2008-12-01 08:33:07 +00:00
parent 727426fd4f
commit 39fd9b55d7
2 changed files with 11 additions and 8 deletions

View file

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

View file

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