PROPOSAL
========
LzDatapointer should expose getPosition() to determine position of
node's data
in array of data.
Right now this is available via
comp.datapath.xpathQuery("position()")
Which position does the xpathQuery return? There's the zero-based
position in the parent's childNodes array, and there's also the
one-based position.
I ran across this while optimizing a moderately-sized application for
Laszlo
Studios. The xpath query isn't getting called enough in my app to make
a large
difference, but every available ms helps and I'd rather not use
undocumented
(hence unsupported) calls.
Could this method be added to LzDatapointer, or would that make no
sense?
For the record, you can write
comp.datapath.p.getOffset()
or
comp.data.getOffset()
which return zero-based offsets into the childNodes array.
Dan Stowell
Software Engineer
Laszlo Studios
_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user