rem: if (this.loadErrors != 0) 
add: if (this.loadErrors != 0) { 
context:    this.end = function() {      var toomuch = 0; // number of extra assessments (due to an old bug)      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) {               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);//                throw new Error(XRai.getPath(this.toadd[i][0]) + " has not to be assessed, but an assessment has been saved");            } 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--;            }         }         if (toomuch > 0)            Message.show("warning","Some assessments were in non highlighted passages and have been removed",-1);         if (XRai.firstOldPassage) docStatus = 0;         XRai.updateSaveIcon();         XRai.updateStatusIcon();         if (debug) XRai.dumpPassages();      } catch(e) {         if (debug) XRai.debug("Error while loading assessments: " + XRai.getError(e) + "\n");         alert("Error while loading assessments to this document. You MUST NOT assess this file. Please take the time to fill a bug report so this bug can be fixed.");         throw e;      }   }
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/b57d73dfdbfb10f0583353423b3ccb511319f3dd/article.js/clean/trunk/js/article.js