Removed READONLY attribute from path.href and path.contains functions.
This commit is contained in:
parent
cac4b7d891
commit
1f29452070
1 changed files with 2 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue