[Laszlo-dev] LzNode.datapath doesn't appear to get set
Adam Wolff
adam at laszlosystems.com
Sat Aug 26 17:51:24 EDT 2006
LzDatapath sets the .datapath slot of its parent to point to itself.
A
On Aug 23, P T Withington wrote:
> That sure looks like a brain-oh to me. How did this ever work?
>
> On 2006-08-23, at 09:23 EDT, Philip Romanik wrote:
>
> > LzNode has a variable called datapath. However, it never seems to
> > be set. The setter function, setDatapath() does not set it.
> >
> > function setDatapath ( dp ) {
> > //@field LzDatapath datapath: A pointer to the LzDatapath
> > attached to this node, if
> > //there is one.
> > if (null != this.datapath) {
> > this.datapath.setXPath(dp);
> > } else {
> > new LzDatapath ( this, { xpath : dp } );
> > }
> > }
> >
> >
> > Shouldn't the last line be,
> >
> > this.datapath = new LzDatapath ( this, { xpath : dp } );
> >
> >
> > Phil
> >
>
> _______________________________________________
> Laszlo-dev mailing list
> Laszlo-dev at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
>
More information about the Laszlo-dev
mailing list