MapWrapper now implements org.mozilla.javascript.Wrapper so there's no more

need for special treatment (unwrapping).
This commit is contained in:
hns 2004-02-18 11:40:27 +00:00
parent b735055492
commit 4245d6d08f

View file

@ -684,8 +684,6 @@ public class HopObject extends ScriptableObject implements Wrapper {
node.setFloat(name, ScriptRuntime.toNumber(s));
} else if ("Boolean".equals(s.getClassName())) {
node.setBoolean(name, ScriptRuntime.toBoolean(s));
} else if (s instanceof MapWrapper) {
node.setJavaObject(name, ((MapWrapper) s).unwrap());
} else {
node.setJavaObject(name, s);
}