[Laszlo-user] When is 'isinit' set?

Robin Sheat robin at kallisti.net.nz
Thu Jul 12 00:44:04 PDT 2007


I have a class with attributes that are set via databinding, and some handlers 
listening to those attributes inside the class. However, I don't want the 
handlers to do anything if this is the initial setup of the class (just if 
something changes later on). I thought I could use 'isinited' to test for 
this, however it seems to be getting set to true earlier than I would have 
though.

My handler is being called before my oninit handler (due to the initial 
binding), however I have this:
if (!this.isinited) {
	return;
}
at the start of the handler. The problem is, this.isinited==true even before 
oninit runs. Is this normal?

-- 
Robin <robin at kallisti.net.nz> JabberID: <eythian at jabber.kallisti.net.nz>

Hostes alienigeni me abduxerunt. Qui annus est?

PGP Key 0xA99CEB6D = 5957 6D23 8B16 EFAB FEF8  7175 14D3 6485 A99C EB6D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20070712/5e5f50fe/attachment.bin


More information about the Laszlo-user mailing list