[Laszlo-dev] Question about window.lzx

Trebor Fenstermaker tfenstermaker at laszlosystems.com
Tue Jun 20 15:28:44 EDT 2006


I get a warning in the debug window when a custom event handler is called on
an alert in OL 3.3.1.   The run-time warning is:

WARNING: lz/window.lzx:203:  reference to undefined variable Œres¹

Looking around like 203 of window.lzx I see this method:

<!--- Opens the alert window. -->
<method name="open">
    this.result = null;
    if ( this.onresult ){
        this.onresult.sendEvent( res );
    }
    super.open();
</method>

And it does appear indeed that ³res² is undefined.  Unless I¹m missing
something.

The application code in question looks like this:

<alert name="loginAlertMessage" width="400">    <handler name="onresult"
args="event">
        if (event) {LzFocus.setFocus(userName,true);}    </handler> </alert>

Any thoughts?

tcf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060620/0ba2361e/attachment.html


More information about the Laszlo-dev mailing list