}
public boolean isTransparent() { return true; }
public Object get(Object key) {
+ if (super.has(key)) return super.get(key);
if (key.equals("xwt")) return xwt;
if (key.equals("static")) return myStatic;
if (Box.SpecialBoxProperty.specialBoxProperties.get(key.toString()) != null) return getParentScope().get(key);
- if (super.has(key)) return super.get(key);
throw new JS.Exn("must declare " + key + " before using it!");
}
public void put(Object key, Object val) {
- if (Box.SpecialBoxProperty.specialBoxProperties.get(key.toString()) != null) getParentScope().put(key, val);
- else if (super.has(key)) super.put(key, val);
+ if (super.has(key)) super.put(key, val);
+ else if (Box.SpecialBoxProperty.specialBoxProperties.get(key.toString()) != null) getParentScope().put(key, val);
else throw new JS.Exn("must declare " + key + " before using it!");
}
}