* 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:
hns 2008-02-19 12:22:18 +00:00
parent f6d21299a0
commit 24fbb853f4
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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++) {