Updated comments
This commit is contained in:
parent
727426fd4f
commit
39fd9b55d7
|
@ -3071,10 +3071,12 @@ Zotero.Item.prototype.clone = function(includePrimary) {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete item from database and clear from Zotero.Items internal array
|
* Delete item from database and clear from Zotero.Items internal array
|
||||||
*
|
*
|
||||||
* Items.erase() should be used instead of this
|
* Items.erase() should be used instead of this
|
||||||
**/
|
*
|
||||||
|
* @param {Boolean} eraseChildren Erase child items as well
|
||||||
|
*/
|
||||||
Zotero.Item.prototype.erase = function(deleteChildren) {
|
Zotero.Item.prototype.erase = function(deleteChildren) {
|
||||||
if (!this.id) {
|
if (!this.id) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -321,10 +321,11 @@ Zotero.Items = new function() {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Delete item(s) from database and clear from internal array
|
* Delete item(s) from database and clear from internal array
|
||||||
*
|
*
|
||||||
* If _eraseChildren_ is true, erase child items as well
|
* @param {Integer|Integer[]} ids Item ids
|
||||||
**/
|
* @param {Boolean} eraseChildren Erase child items as well
|
||||||
|
*/
|
||||||
function erase(ids, eraseChildren) {
|
function erase(ids, eraseChildren) {
|
||||||
ids = Zotero.flattenArguments(ids);
|
ids = Zotero.flattenArguments(ids);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user