[Bug 691] New: Add unwrap parameter to global toJava() method

View: New views
1 Messages — Rating Filter:   Alert me  

[Bug 691] New: Add unwrap parameter to global toJava() method

by Bugzilla from bugzilla-daemon@helma.at :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://dev.helma.org/bugs/show_bug.cgi?id=691

           Summary: Add unwrap parameter to global toJava() method
           Product: Helma
           Version: CVS trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: JavaScript Interpreter
        AssignedTo: helma-dev@...
        ReportedBy: lists@...


Created an attachment (id=126)
 --> (http://dev.helma.org/bugs/attachment.cgi?id=126)
Patch to add control over unwrapping in toJava()

Right now, the global toJava() method unwraps the passed object first and then
wraps the result of that in a NativeJavaObject for direct access to its Java
functions on the JavaScript side of things.

For a script where I would need access to native function on the HopObject (not
its wrapped Node), I need a way to control this unwrapping. Here a proposed
patch that adds a second optional parameter to toJava to control this
behaviour. If not defined, toJava performs the same as before.

--
Configure bugmail: http://dev.helma.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Helma-dev mailing list
Helma-dev@...
http://helma.org/mailman/listinfo/helma-dev