rem: if (!this.toadd[i][0].cAssessment) throw new Error(XRai.getPath(this.toadd[i][0]) + " has not to be assessed, but an assessment has been saved"); XRai.setAssessment(this.toadd[i][0].cAssessment,this.toadd[i][1],true); this.toadd[i][0].cAssessment.saved = this.toadd[i][1]; XRai.changeCount--; 
add: if (!this.toadd[i][0].cAssessment) { toomuch++; XRai.changeCount++; var p = document.createElementNS(xrains, xraiatag); p.setAttribute("a",this.toadd[i][1]); p.saved = this.toadd[i][1]; p.parent = this.toadd[i][0]; XRai.assessmentsToRemove.push(p);  } else { XRai.setAssessment(this.toadd[i][0].cAssessment,this.toadd[i][1],true); this.toadd[i][0].cAssessment.saved = this.toadd[i][1]; XRai.changeCount--; } 
context:    this.end = function() {      if (this.loadErrors != 0)         alert("Error while loading assessments. You MUST NOT assess this file (or you can try to erase all the assessments by clicking on the trash icon in the status bar).");      try {         // Update containers         for(var p = XRai.firstPassage; p; p = p.next)            if (p.validated) p.validate();         for(var p = XRai.firstOldPassage; p; p = p.next)            if (p.validated) p.validate();            else throw Error("An element in the old list should be validated!");         for(var i = 0; i < this.toadd.length; i++) {            if (!this.toadd[i][0].cAssessment) throw new Error(XRai.getPath(this.toadd[i][0]) + " has not to be assessed, but an assessment has been saved");            XRai.setAssessment(this.toadd[i][0].cAssessment,this.toadd[i][1],true);            this.toadd[i][0].cAssessment.saved = this.toadd[i][1];            XRai.changeCount--;         }         if (XRai.firstOldPassage) docStatus = 0;         XRai.updateSaveIcon();         XRai.updateStatusIcon();         if (debug) XRai.dumpPassages();      } catch(e) {         if (debug) XRai.debug("Error while loading assessments: " + e + "\n");         alert("Error while loading assessments to this document. You MUST NOT assess this file");         throw e;      }   }
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/960634991db27a03b83b9d8cf705a68a663c83b1/article.js/buggy/trunk/js/article.js