* Do not rely on Java classes to implement IPathElement.

Implement all necessary features such as href() and getChildElement()
  ourselves instead.
* Add missing classes to class.properties.
* Display actual line numbers in function source macro.
This commit is contained in:
hns 2006-11-20 11:05:24 +00:00
parent c9463fe57a
commit 694139d897
6 changed files with 47 additions and 26 deletions

View file

@ -129,8 +129,9 @@ function source_macro(param) {
sourcecode = sourcecode.replace(r, "");
var arr = sourcecode.split("<br />");
var line = this.getStartLine ? this.getStartLine() : 1;
for (var i = 0; i < arr.length; i++) {
res.write('<font color="#aaaaaa">' + (i + 1) + ':</font> ');
res.write('<font color="#aaaaaa">' + (line++) + ':</font> ');
if (i < 99) {
res.write(' ');
}