From bf86d54c6733b60eb9393604cde4f3e84730f723 Mon Sep 17 00:00:00 2001 From: stefanp Date: Mon, 25 Mar 2002 18:36:56 +0000 Subject: [PATCH] removed obsolete functions: calling href() on Java objects does indeed work. The problem was that getParentElement() method in Application always returned null (due to a very hard to find bug in helma.main.Server). --- DocApplication/functions.js | 14 -------------- DocFunction/functions.js | 13 ------------- DocPrototype/functions.js | 14 -------------- 3 files changed, 41 deletions(-) delete mode 100644 DocApplication/functions.js delete mode 100644 DocPrototype/functions.js diff --git a/DocApplication/functions.js b/DocApplication/functions.js deleted file mode 100644 index fbbd7872..00000000 --- a/DocApplication/functions.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * overrides the internal href-function, as - * helma.framework.core.Application.getNodeHref(Object,String) - * isn't able to compute correct urls for non-node objects. - * @arg action of application - */ -function href(action) { - var url = getProperty("baseURI"); - url = (url==null || url=="null") ? "" : url; - url += this.name + "/api/" + ( (action!=null && action!="") ? action : "main" ); - return url; -} - - diff --git a/DocFunction/functions.js b/DocFunction/functions.js index 4fac6021..c903ff5f 100644 --- a/DocFunction/functions.js +++ b/DocFunction/functions.js @@ -1,17 +1,4 @@ -/** - * overrides the internal href-function, as - * helma.framework.core.Application.getNodeHref(Object,String) - * isn't able to compute correct urls for non-node objects. - * @arg action of prototype - */ -function href(action) { - var url = getProperty("baseURI"); - url = (url==null || url=="null") ? "" : url; - url += this.getParentElement().getParentElement().getName() + "/api/" + this.getParentElement().getName() + "/" + this.getTypeName().toLowerCase()+"_"+this.name + "/" + ( (action!=null && action!="") ? action : "main" ); - return url; -} - function getApplication() { return this.getParentElement().getParentElement(); diff --git a/DocPrototype/functions.js b/DocPrototype/functions.js deleted file mode 100644 index 053c0541..00000000 --- a/DocPrototype/functions.js +++ /dev/null @@ -1,14 +0,0 @@ - -/** - * overrides the internal href-function, as - * helma.framework.core.Application.getNodeHref(Object,String) - * isn't able to compute correct urls for non-node objects. - * @arg action of prototype - */ -function href(action) { - var url = getProperty("baseURI"); - url = (url==null || url=="null") ? "" : url; - url += this.getParentElement().getName() + "/api/" + this.name + "/" + ( (action!=null && action!="") ? action : "main" ); - return url; -} -