Fix isAbstract() errors
This commit is contained in:
parent
7036f13a10
commit
f23d9a4aeb
|
@ -1188,12 +1188,8 @@ Zotero.Item.prototype.getNotes = function(){
|
|||
* Return true if a note item is an abstract, false otherwise
|
||||
*/
|
||||
Zotero.Item.prototype.isAbstract = function() {
|
||||
if (this.isAttachment()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.isNote()) {
|
||||
throw ("isAbstract() can only be called on note items");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!this.getID()) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user