MapWrapper now implements org.mozilla.javascript.Wrapper so there's no more
need for special treatment (unwrapping).
This commit is contained in:
parent
b735055492
commit
4245d6d08f
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue