rem: for (var i=0; i < ds.length; i++) { 
add: for (var i=0; i < ds.length; ++i) { 
context: function getLink(ID) {  if (!ID)    return null;  // Note resources are stored in fileURL#ID format.  // We have one possible source for an ID for each datasource in the composite datasource.  // The first ID which matches is returned.  var tocTree = document.getElementById("help-toc-tree");    tocDS = tocTree.database;    if (tocDS == null)      return null;    var tocDatasources = tocTree.getAttribute("datasources");  var ds = tocDatasources.split(/\s+/);  for (var i=0; i < ds.length; i++) {    if (ds[i] == "rdf:null" || ds[i] == "")      continue;    try {      var rdfID = ds[i] + "#" + ID;      var resource = RDF.GetResource(rdfID);      if (resource) {        var link = tocDS.GetTarget(resource, NC_LINK, true);        if (link) {          link = link.QueryInterface(Components.interfaces.nsIRDFLiteral);          if (link)             return link.Value;          else              return null;        }        }    }    catch (e) { log(rdfID + " " + e);}  }  return null;}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/019ec3fba2742f117e373fe522a3cfcbcfb1c2bb/help.js/buggy/extensions/help/resources/content/help.js