n0lk (2) [Avatar] Offline
#1
Why is mouseover/mouseout called twice in a row on inner1? It happens in my browser, and I can see it in Figure 4.9 as well, but it isn't explained in the text.

I managed to stop it by calling event.stopPropagation() in the report function, but I don't understand why it happens in the first place?

Fantastic book, by the way. It's not often authors manage to explain things so clearly and concisely as you have done. Thank you!
n0lk (2) [Avatar] Offline
#2
Re: mouseover/out in Figure 4.9
Ok, I figured it our from the things you talked about earlier in the chapter. The event is 'bubbling' up do the outer1 that is the parent of inner1, which causes the event to be triggered again.

It's all starting to make sense. Thanks!
bear.bibeault (675) [Avatar] Offline
#3
Re: mouseover/out in Figure 4.9
:thumbs-up