Awesome - that makes sense.  Thanks for the quick response!

On Feb 24, 6:27 pm, Guillermo Rauch <[email protected]> wrote:
> oh, by window I mean a <div> overlay for example.
>
>
>
>
>
> On Wed, Feb 25, 2009 at 12:26 AM, Guillermo Rauch <[email protected]> wrote:
> > Remember stop() does two things: prevent the default behavior from being
> > triggered and stop the event propagation.I think your question points to
> > when it's useful to stop the event propagation. A clear example would be if
> > you have a window that has to be closed when you click on it, unless you
> > click a button. That button has to 'stop' the propagation of the click event
> > to the main window, otherwise 'click' will be triggered in the parent window
> > too, and it'll be closed.
>
> > On Wed, Feb 25, 2009 at 12:22 AM, kiwibulldog <[email protected]
> > > wrote:
>
> >> Hey all,
>
> >> I'm new to Javascript/Mootools and was wondering the importance of
> >> stopping events via e.stop().  I know in some cases (like the 'click'
> >> event on an <a> element stopping a browser from following a link) it
> >> is necessary, but is it good practice to always stop events?
>
> >> Are there any cases when you would want to stop an event?
>
> >> Thanks,
> >> Matt
>
> > --
> > Guillermo Rauch
> >http://devthought.com
>
> --
> Guillermo Rauchhttp://devthought.com- Hide quoted text -
>
> - Show quoted text -

Reply via email to