From 1f2945207011fa2b37c415ffbaa4ba75e235c322 Mon Sep 17 00:00:00 2001 From: lehni Date: Wed, 12 Aug 2009 11:02:06 +0000 Subject: [PATCH] Removed READONLY attribute from path.href and path.contains functions. --- src/helma/scripting/rhino/PathWrapper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/helma/scripting/rhino/PathWrapper.java b/src/helma/scripting/rhino/PathWrapper.java index e79d6caa..7a86cab4 100644 --- a/src/helma/scripting/rhino/PathWrapper.java +++ b/src/helma/scripting/rhino/PathWrapper.java @@ -41,12 +41,11 @@ public class PathWrapper extends ScriptableObject { this.path = new RequestPath(core.app); // initialize properties and functions - int attributes = DONTENUM | READONLY | PERMANENT; setParentScope(core.getScope()); setPrototype(null); - defineProperty("length", PathWrapper.class, attributes); + defineProperty("length", PathWrapper.class, DONTENUM | READONLY | PERMANENT); defineFunctionProperties(new String[] {"href", "contains"}, - PathWrapper.class, attributes); + PathWrapper.class, DONTENUM | PERMANENT); } /**