Sorry, found the fault by myself...

I forgot to return the result of the prototype call :)

On 4 Jun., 09:37, malibubu <[email protected]> wrote:
> Hi all,
>
> I've the following code:
>
> public final native JavaScriptObject addNode(...) {
> ...
>         outputPort.createCommand=function(request) {
>                 alert(request);
>                 $wnd.draw2d.OutputPort.prototype.createCommand.call(this, 
> request);
>                 alert("done");
>         }
> ...
>
> }
>
> When the function is called, [Object] will be promted. After that, an
> JS-Error occurs: ""undefined" is null or not an object".
> It seems to be that the parameter "request" is not submitted to the
> underlaying function. If I uncomment the function
> "outputPort.createCommand=function(request)..." it works very well.
> The variable "outputPort" is an instance of draw2d.OutputPort and
> draw2d.OutputPort contains the function "createComment(request)".
>
> I've done this with oder functions without parameter and it works...
> Any ideas?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to