On 14 Dec 2005, at 15:33, Henry Minsky wrote:
Is there really an important difference between sending the event and handling it?
Is this a trick question? To me, sending seems rather different than receiving. Using the same tag to mean sending and receiving seems confusing and prone to error. (I was in the single tag camp to start with, but Antun enlightened me.)
If your class is declared as sending an event, who does it send it to?
It sends it to anyone who handles it (by declaring their intention with the <handler> tag).
If it is itslef, that means it calls this.onfoo.sendEvent(), and if so, shouldn't there be a default null handler for it?
That's an implementation detail. Either you check for no handlers, or you have a default null handler. [Currently we do the former, but if you don't remember to declare your events, you get a debugger warning because the list of handlers is undefined, not just null...]
_______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
