Jeremy,
I'm getting lost at the beginning of Lesson 21. What's the relation between
Quote:
|
eventUtility.addEvent(document, "click", function(event) {alert(event);});
|
(p. 205)
and
Quote:
|
eventUtility.addEvent(link, "click", func);
|
(p. 203)?
I guess what I'm not understanding is:
Quote:
|
In actuality, the functions you wire to events should accept one argument, because...the browser passes an Event object to the function handling an event....
|
The eventutility, I thought, was built to assign a function (like addDigit) to the event. Why would we want to assign this alert to the event?
Are you saying the code on p 203,
really should have an argument?
Thanks.