Removed READONLY attribute from path.href and path.contains functions.

This commit is contained in:
lehni 2009-08-12 11:02:06 +00:00
parent cac4b7d891
commit 1f29452070

View file

@ -41,12 +41,11 @@ public class PathWrapper extends ScriptableObject {
this.path = new RequestPath(core.app); this.path = new RequestPath(core.app);
// initialize properties and functions // initialize properties and functions
int attributes = DONTENUM | READONLY | PERMANENT;
setParentScope(core.getScope()); setParentScope(core.getScope());
setPrototype(null); setPrototype(null);
defineProperty("length", PathWrapper.class, attributes); defineProperty("length", PathWrapper.class, DONTENUM | READONLY | PERMANENT);
defineFunctionProperties(new String[] {"href", "contains"}, defineFunctionProperties(new String[] {"href", "contains"},
PathWrapper.class, attributes); PathWrapper.class, DONTENUM | PERMANENT);
} }
/** /**