[Laszlo-user] <text>/format API change proposal

P T Withington ptw at pobox.com
Thu Dec 11 10:28:37 PST 2008


Presently, calling `<text>/format` replaces the contents of the text  
element.  It occurs to me that most of the time when you are calling  
`format` you mean to append more text, not to replace it.

I propose that we change `<text>/format` to append, and that if you  
want to replace the text you call `<text>/clearText` or `<text>/ 
setAttribute('text' "")` first.

If this is not an acceptable change, an alternative would be to create  
a new API `<text>/formatAppend` that would append, but it seems a  
shame to have such a long name for what is likely the more common  
operation.

Filed as:

http://jira.openlaszlo.org/jira/browse/LPP-7454

Please comment there.


More information about the Laszlo-user mailing list