satar (32) [Avatar] Offline
#1
Took me a little bit to figure out that there is an error in the parameters to the class Clock. You want to remove the "MarkupContainer parent" parameter. Just stating this in the forum as I searched for 10.2 here and didn't find it. Then, I started looking at the code and realized that the call to the constructor in the ClockPage only includes two parameters and quickly realized that the parent parameter was truly extra and needed to go.
Eelco12 (100) [Avatar] Offline
#2
Re: Listing 10.2
Good catch. Sorry about that. When we started writing the book, we did so on the basis of a big refactor that would force users to pass in the parent when constructing components rather than using add. Later we reverted that change (see http://martijndashorst.com/blog/2007/03/15/curtain-closes-for-wicked-constructor-change/), which meant a lot of rewriting for us, and unfortunately as it turned out we had a slip smilie
satar (32) [Avatar] Offline
#3
Re: Listing 10.2
No real biggy, didn't take too long to figure out but I thought I would share in case someone else bumps into it.