[Prototype-core] Re: Event methods' bug in Internet Explorer

2007-10-11 Thread Tom
Matt, it definitely does fail in IE, because stop is implmented as stop: function(event) { event.preventDefault(); event.stopPropagation(); } preventDefault and stopPropagation are 2 of the functions added to the Event object in IE when it is extended so they dont exist on the

[Prototype-core] Re: Event methods' bug in Internet Explorer

2007-10-09 Thread Matt Foster
You sure that will fail? I am pretty sure the static event methods should all work with a regular event object. Isn't it just for convenience, like the Element methods that they put the method in as a property just for the syntactic sweetness? Also I agree with Mislav, inline event handling is

[Prototype-core] Re: Event methods' bug in Internet Explorer

2007-10-02 Thread Mislav Marohnić
On 10/2/07, Viktor Kojouharov [EMAIL PROTECTED] wrote: The above snippet will cause an error in IE due to the reason that the event is never extended, since it doesn't go through the observe wrapper. A possible solution for this is to use the old syntax of Event.method(event) inside