From 68db756b0ed4b7f1cd7ed1936b2c2742db238c28 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 20 Nov 2006 13:34:15 +0000 Subject: [PATCH] * Do not rely on Java classes to implement IPathElement. Implement all necessary features such as href() and getChildElement() ourselves instead. --- DocFunction/functions.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 DocFunction/functions.js diff --git a/DocFunction/functions.js b/DocFunction/functions.js new file mode 100644 index 00000000..eafd288c --- /dev/null +++ b/DocFunction/functions.js @@ -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; +} + +