It is always safe to use .setAttribute. It is inlined by the compiler, so not expensive. We would like someday to do as you suggest. See:
http://jira.openlaszlo.org/jira/browse/LPP-7469 for some of the details on why we have not yet. On 2009-12-21, at 14:37, Rami Ojares / AMG wrote: > The only with attributes and events according to me is this: > attr = somevalue should work like setAttribute("attr", somevalue); > And only in cases when you don't want to send events you would call > setSilently("attr", somevalue); > At least I have made it my golden rule that ALWAYS use setAttribute when > setting attribute values. > That's because so often I have not done it and then wondered later why some > of my delegates are not working. > > - rami
