On Sun, May 1, 2011 at 05:11, hairbo <[email protected]> wrote: > > Thanks to all for the advice. I'm glad I wasn't completely 100% > bonkers wrong on this. Maybe 30% or so, but I'll take it.
I mentioned it in the other thread, but keeto (Mark Obcena) wrote a really good book on javascript, and specifically how mootools uses it. It'll teach you a lot more, and explain things more thoroughly. If you like the 'Up the moo herd' blog posts on keetology.com, you'll like the book as well. > Embarrassingly, I didn't know that I shouldn't use Event(e).stop() > anymore (preventDefault seems the more modern way?) It's not the `stop` that is the problem. `stop` is a shortcut for doing both `preventDefault` and `stopPropagation`. The thing is that since MooTools 1.2, the event you receive as argument in the handler is already extended. You don't have to do `new Event(e).stop()`, you could just do `e.stop()`. > nor did I know I could put the "Implements" stuff into the class > itself. That's a 1.2 addition as well I think, take a look at: http://mootools.net/docs/core/Class/Class#Class:constructor -- Tim Wienk, Software Developer, MooTools Developer E. [email protected] | W. http://tim.wienk.name
