Fix isAbstract() errors

This commit is contained in:
Dan Stillman 2007-01-03 19:06:00 +00:00
parent 7036f13a10
commit f23d9a4aeb

View File

@ -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()) {