[Laszlo-dev] Question about constructing LzDataset inside methods
Philip Romanik
promanik at laszlosystems.com
Tue Jan 2 08:21:49 PST 2007
Hi Tucker,
I'm tracking down issues with charting in legals and found some references
to LzDataset that don't appear correct. In two places (dataseries.lzx) an
LzDataset object is created using this syntax:
ds = new LzDataset("legendds");
Unless there is another constructor I'm not aware of, the string is being
passed as the parent object. It looks like this works by luck because the
LzDataset constructor avoids using or storing the string.
Shouldn't this line be better written as,
ds = new LzDataset(this, { name: "legendds" });
Thanks!
Phil
More information about the Laszlo-dev
mailing list