helma/DocFunction/functions.js
hns 68db756b0e * Do not rely on Java classes to implement IPathElement.
Implement all necessary features such as href() and getChildElement()
  ourselves instead.
2006-11-20 13:34:15 +00:00

10 lines
214 B
JavaScript

/**
* Method used by Helma for URL composition.
*/
function href(action) {
var base = this.getParentElement().href()
+ this.getElementName() + "/";
return action ? base + action : base;
}