[Laszlo-dev] inited and oninit
r.bitter.mailinglists at googlemail.com
Tue Oct 4 02:40:48 PDT 2011
And it's important to not confuse @inited with the internal attribute
@isinited. 'isinited' will be set to true before the init method is
On Tue, Sep 27, 2011 at 9:19 PM, Donald Anderson <dda at ddanderson.com> wrote:
> Hello Rami,
> It depends on what you need. The sequence for node is this:
> (this.inited initially false)
> 'oninit' event sent
> if the node has a datapath, then apply the data
> this.inited = true;
> 'oninited' event sent
> That's in WEB-INFO/lps/lfc/core/LzNode.lzs , __LZcallInit() .
> 'oninited' seems like a good one to listen to if you want everything done.
> - Don
> On Sep 27, 2011, at 2:01 PM, Rami Ojares wrote:
> I noticed that when I receive oninit from a node it does not quarantee that
> it's inited attribute is true.
> And the docs seem to confirm that too.
> "Indicates that a node's init method has been called. True when init has
> been called and the oninit event has been sent."
> This seems to me rather odd...
> Should I listen to oninited event instead?
> - rami
> Don Anderson
> Java/C/C++, Berkeley DB, systems consultant
> voice: 617-306-2057
> email: dda at ddanderson.com
> www: http://www.ddanderson.com
> blog: http://libdb.wordpress.com
More information about the Laszlo-dev