View Full Version : deleteView
epopov
01-21-2004, 12:08 PM
Hi,
Is deleteView method available in lps-v2? Does it realy delete views and clear memory in lps-v2?
Thanks.
antun
01-21-2004, 12:59 PM
Yes, the memory leak issue is fixed, however the method has been replaced/renamed to destroy().
-Antun
huntedman
10-11-2005, 03:54 AM
Destroy does not destroy objects at all. It merely hides them and sets the value to an empty string. The grabage collector will take care of this, BUT if the object is on a form, it WILL submitted with an empty value, resulting in value-arrays. Furthermore, if the object contains any other object, the hierarchy will be lost, so a set of single, destroyed objects will be placed invisible somewhere on the form.
Bizarre...
huntedman
10-11-2005, 06:56 AM
Dear Antun, collegue, or co-Laszlo-developer,
I've editted a line of code in the 'submit' event of 'Submit.lzx' to ensure that no destroyed objects are submitted. Please give some comment on it's correctness and wheather it will be implemented in the next release.
old code :
if (submitname != "" && parent.formdata[i].submit)
changed to:
if (submitname != "" && parent.formdata[i].submit && item._sCall.name != "LzNode.prototype.destroy")
Thanx in advance and best regards,
Arthur,
A somewhat more confident Laszlo developer.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.