On Jan 28, 2008 3:36 AM, kangax <[EMAIL PROTECTED]> wrote:
> Event.stop does preventDefault internally and "return false" only
> makes sense when you use inline handlers which is usually not the
> case.
>
it looks like Event.stop calls preventDefault(), and also stopPropagation()
which i was unfamiliar w/, ill start using from now on.
stop: function(event) {
Event.extend(event);
event.preventDefault();
event.stopPropagation();
event.stopped = true;
}
-nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---