On May 16, 2006, at 7:42 AM, Amy Muntz wrote:

Task 2

Then, please use the DeclareEvent pattern, and remove the if's as you no longer have to check for null. Please do this in the same set of files you are currently working with, and then send that out for review (Henry has volunteered to review this next changeset - thanks, Henry!)


Woah. The DeclareEvent isn't where the if's are -- it's in the sendEvent idiom we use. We'd need a SendEvent standalone function to get rid of the if's.

SendEvent = function(evt, arg) {
if (evt != null) evt.sendEvent(arg);
}

Then we can rewrite the body of SendEvent if the semantics change.

Or am I confused? Can someone please write up a mini-proposal for what we're doing?

Thanks,

jim
_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to