* Do not rely on Java classes to implement IPathElement.
Implement all necessary features such as href() and getChildElement() ourselves instead.
This commit is contained in:
parent
694139d897
commit
68db756b0e
1 changed files with 10 additions and 0 deletions
10
DocFunction/functions.js
Normal file
10
DocFunction/functions.js
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
/**
|
||||||
|
* Method used by Helma for URL composition.
|
||||||
|
*/
|
||||||
|
function href(action) {
|
||||||
|
var base = this.getParentElement().href()
|
||||||
|
+ this.getElementName() + "/";
|
||||||
|
return action ? base + action : base;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue