[Laszlo-user] What should happen to a datapointer when you delete the node it is pointing to?
Henry Minsky
hminsky at laszlosystems.com
Fri Apr 3 16:57:45 PDT 2009
Hi Laszlo Users,
This was discussed previously in a thread in Laszlo-Dev, but we realized we
should probably get people's opinion
from Laszlo User before deciding on the 'correct' behavior. I need to
resolve this bug by either changing
the regression test to match the current behavior or changing the behavior
of the deleteNode method back to the
older behavior.
The bug is http://www.openlaszlo.org/jira/browse/LPP-7461
And was discussed on laszlo dev back in December:
http://www.openlaszlo.org/pipermail/laszlo-dev/2008-December/018410.html
Currently, the documentation says
datapointer.deleteNode();
Removes the node pointed to by the datapointer. If rerunxpath is true and
xpath has been set, it will be re-evaluated. Otherwise, if the deleted node
has a following sibling, the pointer is repositioned at that sibling.
Otherwise the pointer is set to null.
However, the current behavior actually will back up the pointer to a
previous sibling if there is no next sibling.
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-user/attachments/20090403/d109cb3d/attachment.html
More information about the Laszlo-user
mailing list