* Unwrap argument in isTypedObject(). Fixes bug 523.
http://helma.org/bugs/show_bug.cgi?id=523
This commit is contained in:
parent
a20913ab7f
commit
2ae82c3baf
1 changed files with 2 additions and 0 deletions
|
@ -464,6 +464,8 @@ public class RhinoEngine implements ScriptingEngine {
|
|||
* @return true if the object is mapped to a type
|
||||
*/
|
||||
public boolean isTypedObject(Object obj) {
|
||||
if (obj instanceof Wrapper)
|
||||
obj = ((Wrapper) obj).unwrap();
|
||||
if (obj == null || obj instanceof Map || obj instanceof NativeObject)
|
||||
return false;
|
||||
if (obj instanceof IPathElement) {
|
||||
|
|
Loading…
Add table
Reference in a new issue