Change 20070910-Philip-6 by [EMAIL PROTECTED] on 2007-09-10 12:06:18 EDT
    in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/wafflecone
    for http://svn.openlaszlo.org/openlaszlo/branches/wafflecone

Summary:  Prevent initstage=defer from changing to "early"

New Features:

Bugs Fixed: LPP-712

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
initstage is changed to "early" in completeInstantiation(). However, I don't see why this change is necessary. Objects are instantiated without problem if you leave initstage=defer. I did not touch the other case where initstage is set to "early".

Tests:
Run spike-initstage.lzx test that is listed in LPP-712. This is the app, with slightly enhanced debugging output. When you click on the "finish" button, the last window will be inited.

<canvas>
    <debug y="200" />
    <class name="mywindow" extends="window" width="100" height="100" >
        <method event="oninit">
            Debug.write("oninit", this.initstage, this, this.title);
if (global['deferedWindow']) Debug.write("deferedWindow.initstage",
deferedWindow.initstage, deferedWindow.isinited);
        </method>
    </class>

    <mywindow title="immediate" initstage="immediate"  x="0" />
    <mywindow title="early" initstage="early"  x="100"/>
    <mywindow title="normal" initstage="normal"   x="200">
<button text="finish" onclick="deferedWindow.completeInstantiation()" />

    </mywindow>
    <mywindow title="late" initstage="late"  x="300"/>
    <mywindow id="deferedWindow" title="defer" initstage="defer"  x="400"/>

    <simplelayout/>
</canvas>


Files:
M      WEB-INF/lps/lfc/core/LzNode.lzs

Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070910-Philip-6.tar


Reply via email to