projects
/
org.ibex.core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b4e5a60
)
2003/10/16 18:37:27
author
brian
<brian@xwt.org>
Fri, 30 Jan 2004 07:39:29 +0000
(07:39 +0000)
committer
brian
<brian@xwt.org>
Fri, 30 Jan 2004 07:39:29 +0000
(07:39 +0000)
darcs-hash:
20040130073929
-aa32f-
e936413f441beecab017003665cf03e7a6909c15
.gz
src/org/xwt/Template.java
patch
|
blob
|
history
diff --git
a/src/org/xwt/Template.java
b/src/org/xwt/Template.java
index
a180bf9
..
e7e72b5
100644
(file)
--- a/
src/org/xwt/Template.java
+++ b/
src/org/xwt/Template.java
@@
-351,15
+351,15
@@
public class Template {
}
public boolean isTransparent() { return true; }
public Object get(Object key) {
}
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 (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) {
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!");
}
}
else throw new JS.Exn("must declare " + key + " before using it!");
}
}