[Laszlo-dev] For your review: Lock layouts until parent view
(and its children) are done initing
Adam Wolff
adam at laszlosystems.com
Fri Jan 6 11:31:19 PST 2006
I don't think this is the right way to do this. Right now layouts already
lock until *they* init (after reference resolution.) This is pretty easy
to change. Allow me to call your attention to this line in LzLayout:
//locked is set to 2 in the prototype of the layout. This is a special
signal
//that the layout is locked temporarily until it resolves its references
LzLayout.prototype.locked = 2;
I would remove the override of __LZresolveReferences from layout
and create a function that does this:
if ( this.locked == 2){
this.unlock();
}
Then create a delegate at construct time that calls this function when the
parent inits.
A
On Jan 6, Max Carlson wrote:
> I'm seeing a more than 10x startup time improvement in Ben's test case with
> this change. Please review and let's get it checked in!
>
> -Max
>
More information about the Laszlo-dev
mailing list