rem: var group = new Element('ul').inject(wrapper); var head = header.get('text').split(':'); head = (head.length == 1) ? head[0] : head[1]; var section = header.id.split(':')[0];  var lnk = '<a href="' + Docs.anchorsPath + '#' + header.id+ '">' + head + '</a>'; new Element('li').set('html', lnk).inject(group);  var subgroup = new Element('ul', {'class': 'subgroup'}).inject(group);  anchors.each(function(anchor) { var sep = anchor.id.match(':'); var subSection = anchor.id.split(':')[0];  if (section == subSection || (!i && !sep)) { var method = anchor.get('text').replace(section, ''); lnk = '<a href="' + Docs.anchorsPath + '#' + anchor.id + '">' + method + '</a>'; new Element('li').set('html', lnk).inject(subgroup); } });  }); 
add: var group = new Element('ul').inject(wrapper); var head = header.get('text').split(':'); head = (head.length == 1) ? head[0] : head[1]; var section = header.id.split(':')[0];  var lnk = '<a href="' + Docs.anchorsPath + '#' + header.id+ '">' + head + '</a>'; new Element('li').set('html', lnk).inject(group); var subgroup = new Element('ul', {'class': 'subgroup'}).inject(group);  anchors.each(function(anchor) { var sep = anchor.id.match(':'); var subSection = anchor.id.split(':')[0]; if (section == subSection || (!i && !sep)) { var method = anchor.get('text').replace(section, ''); lnk = '<a href="' + Docs.anchorsPath + '#' + anchor.id + '">' + method + '</a>'; new Element('li').set('html', lnk).inject(subgroup); } }); }); 
context: 		headers.each(function(header, i) {			var group = new Element('ul').inject(wrapper);			var head = header.get('text').split(':');			head = (head.length == 1) ? head[0] : head[1];			var section = header.id.split(':')[0];						var lnk = '<a href="' + Docs.anchorsPath + '#' + header.id+ '">' + head + '</a>';			new Element('li').set('html', lnk).inject(group);						var subgroup = new Element('ul', {'class': 'subgroup'}).inject(group);									anchors.each(function(anchor) {				var sep = anchor.id.match(':');				var subSection = anchor.id.split(':')[0];								if (section == subSection || (!i && !sep)) {					var method = anchor.get('text').replace(section, '');					lnk = '<a href="' + Docs.anchorsPath + '#' + anchor.id + '">' + method + '</a>';					new Element('li').set('html', lnk).inject(subgroup);				}			});					});
meta: 6317	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6317/bc740cadb1a3e0cfcab41f3c23ce23ddd071cd6a/docs.js/clean/Docs/assets/docs.js