Item.getCreators() didn't call _loadCreators(), apparently...

This commit is contained in:
Dan Stillman 2006-10-24 05:57:00 +00:00
parent 43bc723876
commit 953a43064a

View File

@ -255,6 +255,10 @@ Zotero.Item.prototype.getCreator = function(pos){
* Note: Creator data array is returned by reference
*/
Zotero.Item.prototype.getCreators = function(){
if (this.getID() && !this._creatorsLoaded){
this._loadCreators();
}
var creators = [];
for (var i=0; i<this._creators.length; i++){
creators.push(this.getCreator(i));