commit d58221b59f41e09ba9f48040f69f0d54711f5d77
parent 6abaf18fdc17995dc6a3cb00ad3615b9840ccca2
Author: Simon Kornblith <simon@simonster.com>
Date: Thu, 3 Mar 2011 07:09:08 +0000
Fix "citations is undefined" error
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -1539,7 +1539,7 @@ Zotero.Integration.Session.prototype.updateUncitedItems = function() {
Zotero.Integration.Session.prototype.updateUpdateIndices = function(regenerateAll) {
if(regenerateAll || this.regenerateAll) {
// update all indices
- for(var i=0; i<this.citationsByIndex.length; i++) {
+ for(var i in this.citationsByIndex) {
this.newIndices[i] = true;
this.updateIndices[i] = true;
}
@@ -1661,7 +1661,7 @@ Zotero.Integration.Session.prototype.updateCitations = function() {
*/
Zotero.Integration.Session.prototype.restoreProcessorState = function() {
var citations = [];
- for(var i in this.citationsByIndex.length) {
+ for(var i in this.citationsByIndex) {
if(this.citationsByIndex[i] && !this.newIndices[i] && !this.citationsByIndex[i].properties.delete) {
citations.push(this.citationsByIndex[i]);
}