rem: for(var x = start; x && (x == end || XRai.isBeforeOrContains(x,end)); x = XRai.next(x,1)) { if (!x.cAssessment && x != start) { if (debug) x.setAttribute("error",1); throw Error("The element " + XRai.getPath(x) + " had no associated assessment"); } 
add: for(var x = start; x && (XRai.isInRange(x,start,end)); x = XRai.next(x,1)) { if (debug) window.dump("Setting bound for " + XRai.getPath(x) + "\n"); 
context: XRai.setMaxBelow = function(j,bound,force) {   // j is associated to a passage   if (j.passage) {      if (debug) window.dump("Setting max below " + bound + " for " + j.passage.getPaths() + "\n");      // Get the intersection      var start = XRai.getFirstValidParent(j.passage.start,1);      var end = j.passage.end;      for(var x = start; x && (x == end || XRai.isBeforeOrContains(x,end)); x = XRai.next(x,1)) {         if (!x.cAssessment && x != start) {            if (debug) x.setAttribute("error",1);            throw Error("The element " + XRai.getPath(x) + " had no associated assessment");         }         if (!(x.containers && x.containers.length > 0) && !(x.passages && x.passages.length > 1))            XRai.setBound(x.cAssessment,bound,force);      }      return false;   }   // Container or intersection   var x = j.parentNode;   if (debug) window.dump("Setting max below " + bound + " for " + XRai.getPath(x) + "\n");   var f = true;   // Process all contained elemenbound   if (x.containers) for(var i = 0; i < x.containers.length; i++) {      var y = x.containers[i];      var b = XRai.setMaxBelow(y,bound,force);      if (b || bound >=0) XRai.setBound(y,bound,force);      f |= b;   }   // Assessment contained in a passage   if (x.passages || x.getAttribute("type") == "in") {      for(var z = XRai.next(x,1); z && XRai.isIn(z,x); z = XRai.next(z,1)) {         if (z.cAssessment) {            XRai.setBound(z.cAssessment,bound,force);         }      }   }   return f;}
meta: 8632	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8632/118a48a7c56edb8af49d2c17b204d65bb2149adb/article.js/clean/trunk/js/article.js