[Laszlo-dev] LzNode.datapath doesn't appear to get set
P T Withington
ptw at openlaszlo.org
Wed Aug 23 07:11:26 EDT 2006
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
>
More information about the Laszlo-dev
mailing list