* Do not define global functions and OrderedView methods as READONLY,
mirroring the behaviour of HopObject methods. http://helma.org/bugs/show_bug.cgi?id=602
This commit is contained in:
parent
f6d21299a0
commit
24fbb853f4
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ public class GlobalObject extends ImporterTopLevel implements PropertyRecorder {
|
|||
"wrapJavaMap", "unwrapJavaMap", "toJava"
|
||||
};
|
||||
|
||||
defineFunctionProperties(globalFuncs, GlobalObject.class, DONTENUM | READONLY | PERMANENT);
|
||||
defineFunctionProperties(globalFuncs, GlobalObject.class, DONTENUM | PERMANENT);
|
||||
put("app", this, Context.toObject(new ApplicationBean(app), this));
|
||||
put("Xml", this, Context.toObject(new XmlObject(core), this));
|
||||
put("global", this, this);
|
||||
|
|
|
@ -83,7 +83,7 @@ public class ListViewWrapper extends ScriptableObject implements Wrapper, Script
|
|||
* Init JS functions from methods.
|
||||
*/
|
||||
void init() {
|
||||
int attributes = READONLY | DONTENUM | PERMANENT;
|
||||
int attributes = DONTENUM | PERMANENT;
|
||||
|
||||
Method[] methods = getClass().getDeclaredMethods();
|
||||
for (int i=0; i<methods.length; i++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue